ANN: hcss/0.1
- From:
- Jonas Galvez
- Date:
- 2010-11-19 @ 08:49
hcss is markup for css. Runs on Python 2.2+.
http://github.com/galvez/hcss
This is similar (in nature) to Sass/LessCSS/CleverCSS, with the
exception that it simply attempts to employ a few simple conventions
to use an actual HTML structure to describe selectors (and nested
selectors) in CSS. Also implements a new construct for class
inheritance.
Input:
.big-font {
font-size: 20px;
}
<div id="parent">
!big-font;
margin: 10px;
<div class="child">
margin: 5px;
border: 1px solid #000;
</div>
</div>
Output:
div#parent {
font-size: 20px;
margin: 10px;
}
div#parent > div.child {
margin: 5px;
border: 1px solid #000;
}
I made a pull request on Werkzeug asking for a "reload_parameter" in
werkzeug.serving.run_simple(), that would allow us to integrate
automatic hcss recompilation (and potentially other auxiliary
compilers too) with the reloader. Please give it a +1 if you think
this is a good idea:
https://github.com/mitsuhiko/werkzeug/pull/14
-- Jonas