Raw Port the of Ruby's Liquid in PHP