https://github.com/josedonizetti/frog
simple html language template
https://github.com/josedonizetti/frog
Last synced: about 1 month ago
JSON representation
simple html language template
- Host: GitHub
- URL: https://github.com/josedonizetti/frog
- Owner: josedonizetti
- License: mit
- Created: 2014-03-25T11:07:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-18T03:05:05.000Z (almost 11 years ago)
- Last Synced: 2025-01-25T12:11:20.502Z (3 months ago)
- Language: Ruby
- Size: 395 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#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
```[Atom Support.](https://github.com/josedonizetti/atom-language-frog)
## Contributing
Want to contribute? Great!
1. Fork it.
2. Create a branch (`git checkout -b new_feature`)
3. Commit your changes (`git commit -am "Add new feature"`)
4. Push to the branch (`git push origin new_feature`)
5. Open a [Pull Request][1]##LICENSE
Frog is Copyright (c) 2014 [Jose Donizetti](https://github.com/josedonizetti) and
distributed under the MIT license. See the `LICENSE` file for more info.##Credits
Frog was born inside the [Great Club of Code](http://www.greatcodeclub.com/).