Created
November 23, 2012 22:15
-
-
Save atebitftw/4137537 to your computer and use it in GitHub Desktop.
Declaring a custom namespace extension for Buckshot Templates
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
<!-- | |
In addition to the default namespace, we add another named namespace | |
which declares that anything prefixed with 'custom' should be part of | |
that namespace scope. | |
--> | |
<template xmlns='http://buckshotui.org/platforms/html' | |
xmlns:custom='http://buckshotui.org/sprockets'> | |
<!-- elements in the default namespace work just fine. --> | |
<stack> | |
<textblock text='Here is that sprocket that you ordered:' /> | |
<custom:sprocket teeth='12' diameter='25cm' /> | |
</stack> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment