Created
January 31, 2013 21:50
-
-
Save donaldallen/4686832 to your computer and use it in GitHub Desktop.
Lex parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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