Uploaded image for project: 'Forge: Scalate'
  1. Forge: Scalate
  2. SCALATE-29

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

    Details

    • Type: Feature Request
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Someday
    • Component/s: None
    • Labels:
      None

      Description

      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> 

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jastrachan James Strachan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated: