Re: [Rest2web-develop] Multiple templates, same content
Brought to you by:
mjfoord
From: Peter B. <pe...@pe...> - 2006-02-23 17:50:24
|
On Thursday 23 February 2006 13:43, Fuzzyman wrote: > Peter Brett wrote: > > On Thursday 23 February 2006 11:13, Fuzzyman wrote: > >> Alternatively the *template* could probably already check the command > >> line arguments. This would break if I added any other command line > >> arguments. At the moment the first argument is always the config file, > >> but no other command line options are used. > > > > What about having a special argument, e.g. '--' after which all remaining > > arguments are passed to the template? Either that or a > > '--template-args=<string>'... > > [...] > > How about : > > '--template-file=<path>' > > ? > > Would be easy enough to implement, and can be overridden for individual > files or directories in the restindex. > Can we have --template-args=<string> _as_well_? I've already thought of some excellent uses for it. I don't see any direct problems with putting it in - if users want to do bizarre conditional logic in their template, why the hell not? Peter :) -- Quake II build tools: http://peter-b.co.uk/ v2sw6YShw7$ln5pr6ck3ma8u6/8Lw3+2m0l7Ci6e4+8t4Eb8Aen5+6g6Pa2Xs5MSr5p4 hackerkey.com |