Using built-in templates

Thursday, February 7, 2008 3:26 PM



Templates are a really powerful piece of the GME framework. They allow you to display data from feeds using Ajax UI controls without having to write feed parsing code and the hundreds of lines of javascript required to create these controls.

We've created a few built in templates to get you started and its extremely simple to create your own templates. Want to turn a simple read/write list into a task list with date pickers, ratings and checkboxes? All you have to do is change the value of the template parameter in your list and republish.

Simple Read/Write:

<gm:list id="simplelist" data="${app}/items" template="simple" pagesize="10">


Task List:

<gm:list id="simplelist" data="${app}/items" template="task" pagesize="10">


You can even use our JavaScript library to change your template on the fly.

If you want to find out about the other built in templates check out the Reading and displaying data section of our documentation. Let us know what types of information you like to see on this blog by going to our developer forum and posting.