Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created January 31, 2013 21:50
Show Gist options
  • Save donaldallen/4686832 to your computer and use it in GitHub Desktop.
Save donaldallen/4686832 to your computer and use it in GitHub Desktop.
Lex parsing
// Stored in textarea in page via Page Types (any Lex tag in here has the same result)
{{ button:generate class="btn-primary btn-large" href="#" icon="icon-mobile-phone" icon-large="true" full-width="true" text="Available on the App Store" }}
// In layout file
{{ if product_links }}
<div class="well">{{ product_links }}</div>
{{ endif }}
// Result
Parse error: syntax error, unexpected 'null' (T_STRING)
if ("{" "}"):
{{ product_links }}
endif;
// If I take out the Lex tag from the textarea and just input a string, the if statement works. But not what I wanted...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment