Page is a not externally linkable
Readie - 1:30 am on Nov 15, 2011 (gmt 0)
The author can be place that code between a couple of tags in the identifying it as code
It's still kinda nasty though. I don't expect my users to be aware that !v{[a-z_\d]+}v! is reserved for the template, so I try to go to pains to prevent their comment from getting parsed as such. Now that I think about it though... I could just convert the curly braces to their entitys (&123; and &125; )...
Let me ask you this, though. If you needed to populate in the html page a table with data from a database, how would you go about doing it using your method and still separate the content from the programming logic?
2 template files. One for wrapper (containing <table> ) and one for a complete tr. The tr is built up multiple times into a variable, which is then passed into the template processor for the next template.