Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: SCALATE-42
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: James Strachan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forge: Scalate

use 'meta templates' as a way of generating templates for a specific view

Created: 11/Mar/10 12:08 PM   Updated: 24/Mar/10 05:01 PM
Component/s: scalate-core
Affects Version/s: None
Fix Version/s: 1.0

Issue Links:
Linked
 


 Description  « Hide
Imagine from inside sbt (or mvn shell or something) you typed something like
generateView org.acme.Person

which then auto-generated a sample template for the type in file: src/main/webapp/WEB-INF/org/acme/Person.index.ssp

This would work using a kinda meta-template - a template which generates a template (and uses introspection to iterate through the properties to render.

e.g.

http://gist.github.com/329070

Folks could have a few styles of meta-template to reuse - such as vertical table; multi-column table, form, list or whatnot



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
James Strachan added a comment - 24/Mar/10 05:01 PM
see the sample web application to see it in use