From: Keats <ke...@ea...> - 2003-06-24 14:10:48
|
----- Original Message ----- > Can a templet contain a templet? > Re: > #output file="some/file.txt" { > #eval $t using { "foo":"a", "bar":"b" } > } > Is the above block evaluate or saved literally for later evaluation? I'm not quite sure what you're asking. If you want to save a literal block you can use setblock. The #templet directive is equivalent to #setblock as macro, that is, it parses the text and stores the macro for later evaluation (by the #eval directive or direct expansion). The (as yet mythical) #output directive directs output to a file or stream. You could use this to dynamically generate templates, program files, SQL scripts, or whatever. Hope this answers your question. Keats |