forked from justinhernandez/kohaml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
executable file
·52 lines (33 loc) · 2.06 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
45
46
47
48
49
50
51
52
Haml module for Kohana. Haml is a markup language that‘s used to cleanly and simply describe the XHTML of any web document, without the use of inline code. Haml functions as a replacement for inline page templating systems such as PHP, ERB, and ASP. However, Haml avoids the need for explicitly coding XHTML into the template, because it is actually an abstract description of the XHTML, with some code to generate dynamic content.
You can use KohamlLib without Kohana and integrate it into your own project. Turn standalone to TRUE and read the init() function for more instructions.
Haml: http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml.html
Kohaml: http://blog.transphorm.com/kohaml-haml-module-for-kohana
**** THIS FORK IS WORKING ON SASS PARSING SPECIFICALLY. ***
-------------------------------------------------------------
please call root/kohaml/sass to view a parsed sass file.
all of the sass parsing is wholly contained in the kosass library. You can use this class as a standalone sass parser.
Sass Specification Checklist: http://sass-lang.com/docs/yardoc/SASS_REFERENCE.md.html
Specifications enabled so far:
Defining Rules and selectors:
-- listing multiple selectors must be done on the same line with
commas as separators. This is different from sass in that you MUST
define them on a different line.
Defining properties (attributes) in both formats is enabled
color: blue
:color blue
Nested Rules are enabled
Referencing the parent selector is enabled. (with & )
Property namespaces NOT enabled.
Selector escaping NOT enabled.
Directives and Control directives NOT enabled
Sass Script (semi enabled)
-- variables enabled.
-- operations enabled.
-- Interpolation NOT enabled.
Mixins with nestable mixin-within-mixin functionality is enabled.
-- Nested mixins MUST be defined before they are called.
--Mixin Arguments NOT enabled.
Basic inline comments are enabled.
--Comments must be on one line and will always be removed from output.
"Style" output support which emulates 4 output styles in enabled.
1.nested, 2.expanded, 3.compact, 4.compressed