Skip to content

Instantly share code, notes, and snippets.

@atebitftw
Created November 23, 2012 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atebitftw/4137537 to your computer and use it in GitHub Desktop.
Save atebitftw/4137537 to your computer and use it in GitHub Desktop.
Declaring a custom namespace extension for Buckshot Templates
<!--
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