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-29
Type: New Feature New Feature
Status: Open Open
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

XML based template engine - like the XML flavour of JSP? (maybe called SXML?)

Created: 09/Feb/10 12:23 PM   Updated: 26/Mar/10 01:07 PM
Component/s: None
Affects Version/s: None
Fix Version/s: Someday

Issue Links:
Linked
 


 Description  « Hide
folks might want to create templates using pure XML, using custom tags (mapping namespaces/elements to function calls) and the ${foo} notation for expressions.

So rather than a custom parser as we have now for SSP, we can have something which parsers the XML and transforms elements based on their namespaces (and looks for ${foo} expressions too).

We could then process things like this...

<html xmlns:foo="scala:org.acme.MyTags"> 
 ... 
 <foo:cheese blah="123"> 
   ... 
   ${something} 
   ... 
 </foo:cheese> 
</html>

which would translate to the equivalent of this in SSP

<html>
<% import org.acme.MyTags._ %> 
 ... 
 <%= cheese(blah="123")  { %> 
   ... 
   ${something} 
   ... 
 <% } %>
</html>


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
James Strachan made changes - 09/Feb/10 12:25 PM
Field Original Value New Value
Link This issue is linked to SCALATE-28 [ SCALATE-28 ]
Hiram Chirino made changes - 26/Mar/10 01:07 PM
Fix Version/s Someday [ 10880 ]