Class Liquid::Literal
In: lib/liquid/tags/literal.rb
Parent: Block

Methods

Public Class methods

Converts a shorthand Liquid literal into its long representation.

Currently the Template parser only knows how to handle the long version. So, it always checks if it is in the presence of a literal, in which case it gets converted through this method.

Example:

  Liquid::Literal "{{{ hello world }}}" #=> "{% literal %} hello world {% endliteral %}"

[Validate]