A javascript-based language that compiles to javascript.
Installation
Add this line to your application's Gemfile:
gem 'liquidscript'
And then execute:
$ bundle
Or install it yourself as:
$ gem install liquidscript
If you're using Sprockets in your application, place this in your Gemfile:
gem 'liquidscript', require: 'sprockets/liquidscript'
Usage
To use liquidscript:
TODO: usage example
The language of liquidscript:
# This is an object.
{
test: "hello",
# Note here that a single-quoted string does not have an ending
# delimiter. This is on purpose.
foo: 'bar # ' # syntax highlighting fix
}
# This is a function
func = ()-> {
console.log("hello world")
}
func()
Contributing
- Fork it (http://github.com/medcat/liquidscript/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request