CodeGlass test

This is a test for the Dojo CodeGlass which lets you create executed code examples and lets the user copy and paste that same code.

CodeGlass is a widget mainly intendet for easy to create examples for documentation or similar projects.
All the user has to do is to define the to be executed HTML, CSS and JavaScript, CodeGlass will assemble the code and execute it properly.
In this example we create a completely self contained Dojo layout which you can copy and past into your environment and which will work out of the box for you

The new Dojo docs will convert simple reST syntax into escaped HTML, check the source to see what CodeGlass does.

<script type="text/javascript">
  dojo.require("dijit._Calendar");
</script>
<a href='#'>foo</a><div dojoType="dijit._Calendar" onChange="dojo.byId('formatted').innerHTML=dojo.date.locale.format(arguments[0], {formatLength: 'full', selector:'date'})"></div>

<div id="formatted"></div>{{ dataUrl }}

With an initial selection and weekends disabled

<script type="text/javascript">
  dojo.require("dijit._Calendar");
</script>
<div id="mycal" dojoType="dijit._Calendar" value="2009-08-07" isDisabledDate="dojo.date.locale.isWeekend"></div>

Programmatic, with a restriction of +/- one week from the current date

Hi

Aenean id risus eros. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque nec euismod sem. Aliquam rutrum ligula nec erat mollis ac luctus diam iaculis. Donec in elit metus. Maecenas enim felis, volutpat eu elementum nec, semper id enim. Suspendisse ultrices luctus elementum. Mauris venenatis dolor ac velit pulvinar mattis. Nam commodo, lacus a imperdiet viverra, nisi felis ultricies diam, vitae faucibus mi elit eget lectus. Nunc vitae nisi sit amet erat volutpat iaculis.