> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im
> Auftrag von Stephane Bailliez
> Gesendet: Sonntag, 14. November 2004 02:34
> An: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Betreff: Re: Added projector documentation link
> 
> Daniel Florey wrote:
> > Hi folks,
> > I've added a link to the Slide website that points to my (work in
> progress)
> > documentation of Projector.
> 
> Congratulation Daniel, that's a cool documentation as an introduction to
> the projector.

Thanks. More to come soon as I'm still converting the docs to docbook (no
fun).

> 
> I have yet to digest everything and think more about it, but I have one
> feeling to share:
> 
> why did you make your own template language ?
> 
> When I see this:
> 
> <?username <h1 <?style style="<%style%>"?>>Hello
> <%username;required;text/plain%>!</h1>?>
> 
> I'm already screaming of pain ! It's not readable !
> 

OK, the example you've picked out seems to be complicated (as I've state in
the documentation). My intention for this templating was:
1. To make it very simple. You just mark the dynamic parts in html pages and
you optionally specify the matching content type.
2. It is not targeted towards java programmers, but should be handy for
people with html knowledge. They can simple take their static html-pages and
turn them into projector templates without java skill.
3. I've choosed the <%variable%> syntax as many html-editors (like adobe go
live) handle this correctly as it is close to ASP syntax.
4. See documentation why I've added the <? ... ?>  expression.

But I'm very open to suggestions how to make it even simpler. As the tag
identifiers are defined in a static String, it is very easy to replace them
with other tags.

> Why not using a standard jsp/jstl solution, should it means creating
> taglibs ?

I'll avoid jsp's as it enabled people to fill programming code into the
templates and decreases reusability. I've worked in so many project where
all of the logic was coded into jsp that I still feel it's clever to
prohibit programming code in the templates.
Start using it and I hope you'll share this feeling ;-)

Cheers,
Daniel


> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to