Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
c159e48f
Commit
c159e48f
authored
Aug 24, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Binding: Send output path to upstream. (#379)
parent
caad14f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
binding.cpp
binding.cpp
+2
-0
No files found.
binding.cpp
View file @
c159e48f
...
...
@@ -50,6 +50,7 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
if
(
isFile
)
{
sass_file_context
*
ctx
=
(
sass_file_context
*
)
cptr
;
ctx
->
input_path
=
CreateString
(
options
->
Get
(
NanNew
(
"file"
)));
ctx
->
output_path
=
CreateString
(
options
->
Get
(
NanNew
(
"outFile"
)));
ctx
->
options
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
...
...
@@ -61,6 +62,7 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
}
else
{
sass_context
*
ctx
=
(
sass_context
*
)
cptr
;
ctx
->
source_string
=
CreateString
(
options
->
Get
(
NanNew
(
"data"
)));
ctx
->
output_path
=
CreateString
(
options
->
Get
(
NanNew
(
"outFile"
)));
ctx
->
options
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment