Created
March 1, 2012 17:17
-
-
Save assertchris/1951494 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <!DOCTYPE html> | |
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:glue="http://www.chrisp.co.za/2012/glue"> | |
| <head> | |
| <title>glue</title> | |
| <meta charset="UTF-8" /> | |
| </head> | |
| <body> | |
| <!-- conditionals --> | |
| <glue:if condition="path.to.condition"> | |
| condition is true | |
| </glue:if> | |
| <glue:unless condition="path.to.condition"> | |
| condition is false | |
| </glue:unless> | |
| <!-- iteration --> | |
| <glue:repeat collection="items" as="item"> | |
| item name: <glue:echo value="item.name" /> | |
| </glue:repeat> | |
| <!-- echo --> | |
| <glue:echo value="path.to.value" /> | |
| <!-- subtempaltes --> | |
| <glue:include template="path.to.template" as="xml" /> <!-- as: xml, text --> | |
| <glue:remote url="path.to.url" as="xml" /> <!-- as: xml, text --> | |
| <!-- storage --> | |
| <glue:prepend key="path.to.key"> | |
| value to prepend | |
| </glue:prepend> | |
| <glue:append key="path.to.key"> | |
| value to append | |
| </glue:append> | |
| <glue:store key="path.to.key"> | |
| value to store | |
| </glue:store> | |
| <glue:retrieve key="path.to.key" /> | |
| <!-- misc --> | |
| <glue:literal> | |
| <glue:echo value="path.to.value" /> | |
| </glue:literal> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment