KBD

Keith Devens .com

Thursday, August 28, 2008 Flag waving
Everybody makes their own fun. If you don't make it yourself, it ain't fun -- it's entertainment. – David Mamet (as relayed by Joss Whedon)

Archive: May 23, 2004

← May 22, 2004May 24, 2004 →

Daily link icon Sunday, May 23, 2004

Structured templating

One of the things Nevow, as well as the recent conversion of my site to XHTML, have made me think about is what I can only call "structured templating".

When the output format of your template is something rather unstructured, such as plain text, or even old versions of HTML, you treat your output at the highest level of abstraction you can, which is at the level of strings of text.

However, when your output format is something highly structured, as XML is, it seems that it should be possible to move the level of abstraction up a notch. Not only is the level of abstraction important for "conceptual purity" (ick), but it has the potential to make templating XML (XHTML) easier and importantly, safer. Generating XML is hard to do at the level of text strings. All the broken RSS feeds are a testament to that. Bumping the level of abstraction up is important for correctness.

Nevow seems like it may have a great scheme for exploiting the structure of XML in its templating. I'd like to explore this more, but I'm doubtful PHP is powerful enough to take advantage of this style of templating. I'm going to have to play with Nevow more.

Does mod_rewrite's last flag do anything?

Does mod_rewrite's last flag do anything? These rules wind up giving a forbidden error:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . dispatcher.php [L]
RewriteRule . - [f]

That says: "If the requested filename doesn't exist, forward any URL to dispatcher.php and stop processing rules". Yet instead of stopping at the dispatcher line, it continues onto the next and makes the page forbidden. Why?

← May 22, 2004May 24, 2004 →
August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 1 posts

Recent comments XML

new⇒Girls, please don't get breast implants

http://war-11.ucufyod.net​http://jewelry-26.wohiles.net​http://games-52.ruz...

Randolph: Aug 28, 5:16am

Generated in about 0.055s.

(Used 7 db queries)

mobile phone