IX::Template - templating functions for the IX web framework
use IX::Template;
...
IX currently requires HTML::Template.
IX::Template provides basic functions for template processing and delivery.
getOutput()Returns the output of $template-output> as a variable. A good alternative to throw() when you don't want to send the output directly to the browser as text/html.
This is a shim around $template-output> for a reason I've forgotten. Possibly deprecated, use $template-output> if in doubt, if calling from your application.
javascriptRequired()By default, IX requires javascript; if javascript is disabled, this function is dispatched to serve a page with a special message. This can be overridden by setting $IX::Conf::x{require_javascript} to '0', but this will disable the IX administrative interface, which require
printOutput()Calls print on the value of getOutput(). The utility of this, like getOutput(), seems suspect, and this may be considered deprecated.
skin()Expects a $template object and returns a $template object populated with more information, including navigation data, for the webpage. The variables populated here are the ones required for a valid IX skin. Or should we be a little more lax about this and solve this issue of skin compatibility? Should we somehow include these in the global skins elements?
throw()throw() calls skin() and proceeds to print a cookie-fied header and then printPutput(). This is function to call when your template is ready to 'throw' back at the user.
Description here.
Written and maintained by Marcus Del Greco (marcus@mindmined.com)