> Just curious as to why you had invent another templating language when
> there are already existing ones that you can extend? SimpleTAL is
> pretty popular:
>
> http://www.owlfish.com/software/simpleTAL/about.html
I have nothing against other template languages and you can use other
template languages with WHIFF.
The WHIFF configuration template interpreter has the advantages
1) It is tightly bound to WSGI features.
2a) A configuration template defines a WSGI app with
any number of named arguments.
2b) It permits "includes" for WSGI middlewares and apps
with any number of named arguments which may be
defined by other templates either embedded or included.
3) It doesn't overload the HTML <tag> syntax which always
leads to unreadable catastrophe in my experience.
I'm not aware of other template languages with features like this.
Please have a look at the Flash charts tutorial at
http://aaron.oirt.rutgers.edu/myapp/amcharts/doc
and please let me know how you would do this kind of thing in
your favorite templating alternative. Here is an example
Pie chart spec:
{{env whiff.content_type: "text/html"/}}
{{include "amPie"}}
{{using width}}460{{/using}}
{{using height}}360{{/using}}
{{using labels}}
[
{ "y":20, "align":"center", "width":460,
"text_color": "#505000", "text_size": 15,
"text": "Reptile species per higher taxa" }
]
{{/using}}
{{using pie}}
[
{ "value": 168, "title": "Amphisbaenia" },
{ "value": 5079, "title": "Sauria" },
{ "value": 3149, "title": "Serpentes"},
{ "value": 313, "title": "Testudines"},
{ "value": 23, "title": "Crocodylia"},
{ "value": 2, "title": "Rhynchocephalia"}
]
{{/using}}
{{/include}}
Thanks. -- Aaron Watters
===
less is more
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---