1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/TODO
2009-10-07 14:40:10 -07:00

52 lines
2 KiB
Org Mode

# -*- mode: org -*-
#+STARTUP: nofold
* Documentation
Redo tutorial?
Using helpers
haml_concat and haml_tag in particular
Syntax highlighting?
* Code
Keep track of error offsets everywhere
Use this to show error location in messages
Just clean up SassScript syntax errors in general
Lexer errors in particular are icky
See in particular error changes made in c07b5c8
** Haml
Interpolation shouldn't make non-interpolated strings escaped under :escape_html
I think we can just wrap interpolated code with (),
since it's already interpolated.
Can also use () to wrap contents of _haml_temp so that commas throw errors when not in :ugly
Support finer-grained HTML-escaping in filters
:ugly + :html improvements
Ignore closing tags where we can
http://code.google.com/speed/articles/optimizing-html.html
Requires Haml parsing refactor
Don't quote attributes that don't require it
http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2
http://www.w3.org/TR/html5/syntax.html#attributes
** Sass
Benchmark the effects of storing the raw template in sassc
If it's expensive, overload RootNode dumping/loading to dup and set @template to nil
Then fall back on reading from actual file
Add a Rack middleware option for sass/plugin
CSS superset
Classes are mixins
Can refer to specific property values? Syntax?
Pre-parse everything possible: never call Node#interpolate
Do all parsing in to_tree
Pull in Compass watcher stuff
Internationalization
Particularly word constituents in Regexps
Optimization
http://csstidy.sourceforge.net/
http://developer.yahoo.com/yui/compressor/
Also comma-folding identical rules where possible
Multiple levels
0: No optimization
1: Nothing that changes doc structure
No comma-folding
2: Anything that keeps functionality identical to O2 (default)
3: Assume order of rules doesn't matter
Comma-fold even if there are intervening rules that might interfere