Perhaps I spoke too soon.
I added a (sub) assign command and a (function) get_template_vars command to the required_include.asp file, effectively making it visible to the template that is running.
This new functionality will be useful to those making large templates. It will be nice to make template files do some work for themselves, rather than the calling script.
What's funny is I came up with a solution while writing the previous post. It's odd that you can come up with a solution while trying to define exactly what the problem is.
I didn't document it extremely well, mainly because the Dermis methods are named the same as the sub and function, which may make it confusing at first. I might change that.
See the "email customer's receipt" code for an example.
Wednesday, April 14, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment