Hacker Newsnew | comments | show | ask | jobs | submit login

> Additionally, a good template language does not require knowledge of coding

I don't think I ever saw an effective template language that doesn't require programming knowledge. The only exception is when you move all logic in tags, but even then logic gets mixed with presentation (just not in the main template), and the downside is that a tag is like a black-box ... if the scope is not clear, you have no way of knowing what it produces by not looking over its code (CSS files in ASP.NET end up containing general classes in most cases because of that).

That's because the presentation layer requires logic, for example ... if this happens, then show this, else show that. Or to show the breadcrumb, iterate through this list. Or is this DateTime value in UTC? Then show it in the user's locale. That's logic and it's a lot more then a template with holes in it to fill.

And where is this logic supposed to go if not in the presentation layer?

All the designers I worked with also knew a programming language (at a superficial level at least) and where quite capable of coding complex logic in Javascript (which is also part of the presentation layer). Our fear is that designers don't understand a more complex language, but how many of you worked with such people? (since web-design is all about the end-product, I can't imagine a good designer that can't handle logic). And even if the language guards against shooting yourself in the foot you can always find creative ways to fuck up.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: