Skip to content

Instantly share code, notes, and snippets.

@paulspringett
Created July 26, 2011 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulspringett/1107222 to your computer and use it in GitHub Desktop.
Save paulspringett/1107222 to your computer and use it in GitHub Desktop.
tmpl = Liquid::Template.parse("I've just liked @{{idea_owner}} idea on Rusic at {{link}}")
tmpl.root.nodelist
=> ["I've just liked @", #<Liquid::Variable:0x10301f050 @filters=[], @name="idea_owner", @markup="idea_owner">, " idea on Rusic at ", #<Liquid::Variable:0x10301ed80 @filters=[], @name="link", @markup="link">]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment