code: def index(self, format='html'):
          
          # url('layertemplates')
          lts = meta.Session.query(LayerTemplate)
          # use following query for getting layertemplates owned by current user
          #lts = self._get_lts_from_user(c.user)
          serialized_lts = []
          for lt in lts:
              serialized_lts.append({
                  'id': lt.id,
                  'name': lt.name,
                  'comment': lt.comment,
                  "href": h.url_for(controller="layertemplates", action="show", id=lt.id)
                  })
          # prevent JSON Array Cross-site Exploits (XSRF/CSRF)
          return {'layertemplates': serialized_lts}
docs: GET /layertemplates: All items in the collection.