Skip to content

Instantly share code, notes, and snippets.

@hijonathan
Created December 7, 2010 20:53
Show Gist options
  • Save hijonathan/732390 to your computer and use it in GitHub Desktop.
Save hijonathan/732390 to your computer and use it in GitHub Desktop.
PML Examples
<!-- The meta tags: -->
<meta name="boolean:Show Message" content="1" />
<meta name="text:Custom Message" content="Hi there!" />
<!-- How to implement it: -->
{% if boolean:Show Message %}
{{ text:Custom Message }}
{% endif %}
<!-- The meta tags: -->
<meta name="text:Custom Message" content="Hi there!" />
<!-- How to implement it: -->
{% if text:Custom Message %}
{{ text:Custom Message }}
{% endif %}
<!-- The meta tags: -->
<meta name="widget:My Widget" content="" />
<!-- How to implement it: -->
{{ widget:My Widget }}
<!-- The meta tags: -->
<meta name="widget:My Form Builder" content="__use__default__form__" />
<!-- How to implement it: -->
{{ widget:My Form Builder }}
<!-- The goal: convince the visitor you ship your product to their current location -->
<!-- How to implement it: -->
<h1>We ship to {{ VisitorCity }}!</h1>
<!-- The meta tags: -->
<meta name="boolean:Flip Layout" content="" />
<!-- How to implement it: -->
{% flip boolean:Flip Layout %}
This content
{% with %}
That content
{% endflip %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment