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
da5a9c59
Commit
da5a9c59
authored
Sep 18, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making 'image-url' work for more dynamic arguments.
parent
d5012b2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
eval_apply.cpp
eval_apply.cpp
+3
-3
node_emitters.cpp
node_emitters.cpp
+9
-0
No files found.
eval_apply.cpp
View file @
da5a9c59
...
@@ -298,10 +298,10 @@ namespace Sass {
...
@@ -298,10 +298,10 @@ namespace Sass {
Node
base
(
eval
(
expr
[
0
],
prefix
,
env
,
f_env
,
new_Node
,
ctx
));
Node
base
(
eval
(
expr
[
0
],
prefix
,
env
,
f_env
,
new_Node
,
ctx
));
Node
prefix
(
new_Node
(
Node
::
identifier
,
base
.
path
(),
base
.
line
(),
Token
::
make
(
ctx
.
image_path
)));
Node
prefix
(
new_Node
(
Node
::
identifier
,
base
.
path
(),
base
.
line
(),
Token
::
make
(
ctx
.
image_path
)));
Node
fullpath
(
new_Node
(
Node
::
concatenation
,
base
.
path
(),
base
.
line
(),
2
));
Node
fullpath
(
new_Node
(
Node
::
concatenation
,
base
.
path
(),
base
.
line
(),
2
));
Node
url
(
new_Node
(
Node
::
uri
,
base
.
path
(),
base
.
line
(),
1
));
fullpath
<<
prefix
<<
base
;
fullpath
<<
prefix
<<
base
;
url
<<
fullpath
;
expr
.
pop_back
();
return
url
;
expr
<<
fullpath
;
return
expr
;
}
break
;
}
break
;
case
Node
:
:
function_call
:
{
case
Node
:
:
function_call
:
{
...
...
node_emitters.cpp
View file @
da5a9c59
...
@@ -278,6 +278,15 @@ namespace Sass {
...
@@ -278,6 +278,15 @@ namespace Sass {
return
result
;
return
result
;
}
break
;
}
break
;
case
image_url
:
{
Node
fullpath
(
at
(
0
));
string
result
(
"url(
\"
"
);
result
+=
fullpath
[
0
].
unquote
();
result
+=
fullpath
[
1
].
unquote
();
result
+=
"
\"
)"
;
return
result
;
}
break
;
case
expansion
:
{
case
expansion
:
{
// ignore it
// ignore it
return
""
;
return
""
;
...
...
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