-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
45 lines (37 loc) · 1.5 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
STATAMIC SASS/SCSS PLUGIN
Parses SASS/SCSS files from your theme into a ready to serve CSS file.
Only re-generates CSS when your SASS files are updated.
Install by copying the /sass directory into your Statamic /_add-ons directory.
Tag Usage:
<link rel="stylesheet" href="{{ sass src="scss/myfile.scss" }}">
Tag Parameters:
src="PATH_OF_SCSS_FILE_IN_THEME" *required
dev=
default: "false"
"true" equivalent to: style="nested" update="always" error="die"
style=
default: "compact"
"compact" single line per selector
"compressed" minimal whitespace
"expanded" human readable multi-line style
"nested" mimics sass indent structure
update=
default: "dir"
"dir" update CSS file if any SASS/SCSS file is changed in the same folder
"file" update CSS only when the file referenced by src is updated
"always" update CSS every time - for development
error=
default: "ignore"
"ignore" use last generated CSS, if any
"echo" inject into output stream with echo
"die" echo error to output and exit
debug_info=
default: "false"
"true" add debug info to the CSS file for the FireSass Firebug extension
line_numbers=
default: "false"
"true" add SCSS line numbers references to CSS file
Uses PhpSASS <http://www.phpsass.com> which is based on PHamlP <http://code.google.com/p/phamlp/>
Thanks to those folks!
License: http://www.opensource.org/licenses/bsd-license.php
Author: Jeremy Messenger