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
5f780a24
Commit
5f780a24
authored
Feb 29, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Banging out a tidy top-level driver.
parent
33c5ecdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
+26
-1
sassc.cpp
src/sassc.cpp
+25
-0
test.scss
src/test.scss
+1
-1
No files found.
src/sassc.cpp
0 → 100644
View file @
5f780a24
#include <iostream>
#include <sstream>
#include "document.hpp"
using
namespace
Sass
;
using
namespace
std
;
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
<
2
)
{
cout
<<
"Hey, I need a file to read!"
<<
endl
;
return
0
;
}
Document
doc
(
argv
[
1
],
0
);
doc
.
parse_scss
();
stringstream
output
;
for
(
int
i
=
0
;
i
<
doc
.
statements
.
size
();
++
i
)
{
doc
.
statements
[
i
].
emit_expanded_css
(
output
,
""
);
}
cout
<<
output
.
str
();
return
0
;
}
\ No newline at end of file
src/test.scss
View file @
5f780a24
$blah
:
bloo
;
$blah
:
bloo
blee
;
/* top level comment -- should preserved */
div
{
...
...
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