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
2b2c5d3b
Commit
2b2c5d3b
authored
Aug 25, 2014
by
Adeel Mujahid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #395 from am11/master
Binding: Send output path to upstream (#379)
parents
a882994a
b307957f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
binding.cpp
binding.cpp
+2
-0
render.js
lib/render.js
+1
-0
sass_context_wrapper.cpp
sass_context_wrapper.cpp
+1
-0
No files found.
binding.cpp
View file @
2b2c5d3b
...
@@ -50,6 +50,7 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
...
@@ -50,6 +50,7 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
if
(
isFile
)
{
if
(
isFile
)
{
sass_file_context
*
ctx
=
(
sass_file_context
*
)
cptr
;
sass_file_context
*
ctx
=
(
sass_file_context
*
)
cptr
;
ctx
->
input_path
=
CreateString
(
options
->
Get
(
NanNew
(
"file"
)));
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
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
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*
...
@@ -61,6 +62,7 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
}
else
{
}
else
{
sass_context
*
ctx
=
(
sass_context
*
)
cptr
;
sass_context
*
ctx
=
(
sass_context
*
)
cptr
;
ctx
->
source_string
=
CreateString
(
options
->
Get
(
NanNew
(
"data"
)));
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
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
...
...
lib/render.js
View file @
2b2c5d3b
...
@@ -12,6 +12,7 @@ function render(options, emitter) {
...
@@ -12,6 +12,7 @@ function render(options, emitter) {
sourceComments
:
options
.
sourceComments
,
sourceComments
:
options
.
sourceComments
,
sourceMap
:
options
.
sourceMap
,
sourceMap
:
options
.
sourceMap
,
precision
:
options
.
precision
,
precision
:
options
.
precision
,
outFile
:
options
.
outFile
,
success
:
function
(
css
,
sourceMap
)
{
success
:
function
(
css
,
sourceMap
)
{
var
todo
=
1
;
var
todo
=
1
;
...
...
sass_context_wrapper.cpp
View file @
2b2c5d3b
...
@@ -7,6 +7,7 @@ extern "C" {
...
@@ -7,6 +7,7 @@ extern "C" {
void
free_context
(
sass_context
*
ctx
)
{
void
free_context
(
sass_context
*
ctx
)
{
delete
[]
ctx
->
source_string
;
delete
[]
ctx
->
source_string
;
delete
[]
ctx
->
output_path
;
delete
[]
ctx
->
options
.
include_paths
;
delete
[]
ctx
->
options
.
include_paths
;
delete
[]
ctx
->
options
.
image_path
;
delete
[]
ctx
->
options
.
image_path
;
sass_free_context
(
ctx
);
sass_free_context
(
ctx
);
...
...
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