#Frog
Template language which compiles to html. Support ruby code. Implemented with raac, and rexical.
##Syntax
html {
head {
title "My App"
}
body.css_class {
h1.css_class "My App"
section#id.class1.class2 {
"This is cool"
//Ruby code
- for i in 0..2
//Expressions
p#css_id(style="color:blue") #{i}
- end
}
}
}
Installation
Frog's installation is pretty standard:
$ gem install frog
If you'd rather install Frog using bundler
:
gem 'frog'
Basic Usage
Running frog
passing a template to compile it:
$ frog path/to/template.frog
Contributing
Want to contribute? Great!
- Fork it.
- Create a branch (
git checkout -b new_feature
) - Commit your changes (
git commit -am "Add new feature"
) - Push to the branch (
git push origin new_feature
) - Open a [Pull Request][1]
##LICENSE
Frog is Copyright (c) 2014 Jose Donizetti and
distributed under the MIT license. See the LICENSE
file for more info.
##Credits
Frog was born inside the Great Club of Code.