Search

4/27/2009

HSS

HSS - 未來式的 CSS
https://svn.motion-twin.com/hss/hss/Rules.nml

HSS is tool that extends the CSS syntax with powerful features such as variables and nested blocks.
Property Variables

var mycolor = #1111AA;
var myfont = "Trebuchet MS", Arial, sans-serif;

body {
color : $mycolor;
font : $myfont;
}

Block Variables

var nomargin = { margin : 0px; padding : 0px; }

pre {
$nomargin;
color : #FF0000;
}

Nested Blocks

.faq {
color : #BC683C;
.form {
width : 100px;
textarea {
width : 100%;
height : 80px;
}
.name {
font-weight : bold;
}
}
ul {
margin-left : 20px;
margin-bottom : 20px;
}
}

Comments

p {
// color : red;
font-weight : bold;
/* margin : 0px;
padding : 0px; */
}

HSS is compied by NEKO
The Neko Programming Language

Neko is a high-level dynamically typed programming language which can also be used as an embedded scripting language. It has been designed to provide a common runtime for several different languages. Neko is not only very easy to learn and use, but also has the flexibility of being able to extend the language with C libraries. You can even write generators from your own language to Neko and then use the Neko Runtime to compile, run, and access existing libraries.

If you need to add a scripting language to your application, Neko provides one of the best tradeoffs available between simplicity, extensibility and speed.

Neko allows the language designer to focus on design whilst reusing a fast and well constructed runtime, as well as existing libraries for accessing filesystem, network, databases, xml...

沒有留言: