Skip to content

prevailhs/liquid.as

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid.as

General

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.

Installation

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.

Differences

Known Issues

References:

Development

Development uses the Sprouts ActionScript framework. In order to install, follow these steps:

  1. Fork the project on github.
  2. Clone your repository locally:
    git clone git@github.com:prevailhs/liquid.as.git
  3. Install bunder if not already installed:
    gem install bundler
  4. Install gem bundle:
    bundle install
  5. Run tests to verify they all pass
    bundle exec rake test
  6. Build SWC file for testing within other applications:
    rake swc
  7. Copy the swc from bin/Liquid.swc into your project for use.

Todo

  • 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.