This will be a complete port of Liquid from Ruby to ActionScript. Any template that Ruby Liquid can compile and render, should be compilable by Liquid.as too.
This tries to be framework agnostic (i.e. doesn’t use Flex, AIR, etc.). This adds a little extra code as it implements its own helpers like clear, first, last on Array; this tradeoff is made to allow the code to be portable across many systems.
Until this is packaged for consumption by Sprouts projects as a gem the only path to installation is to follow the development steps (feel free to skip fork and just grab read only clone for compilation) and copy the resultant SWC into your project.
Development uses the Sprouts ActionScript framework. In order to install, follow these steps:
- Fork the project on github.
- Clone your repository locally:
git clone git@github.com:prevailhs/liquid.as.git
- Install bunder if not already installed:
gem install bundler
- Install gem bundle:
bundle install
- Run tests to verify they all pass
bundle exec rake test
- Build SWC file for testing within other applications:
rake swc
- Copy the swc from bin/Liquid.swc into your project for use.
- Implement Ranges.
- Support include statement.
- Cleanup remaining tests.
- Verify TODO items to ensure we aren’t breaking items accidently.
- Add performance tests to make sure AS tradeoffs don’t cause issues.
- Package into a gem that can be consumed by other Sprouts projects.
- Update to latest Flex compiler.