Skip to content

teliosdev/liquidscript

Repository files navigation

Liquidscript

Build Status Coverage Status Code Climate Gem Version Dependency Status License

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

  1. Fork it (http://github.com/medcat/liquidscript/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request