Hi Carl, sorry for the confusion.
The ui_modules model is that the template files are html only, no
javascript or css.
The css and javascript only need to be included once, no matter how
many times the module is used, so we separate those out and insert
them in the proper place in the page (in the head for css, the end of
the body for javascript).
To specify the javascript and css, you can either put short snippets
in the uimodule with embedded_css and embedded_javascript (for one-
liners), or if they're longer, create separate .css and .js files and
list them in css_files and javascript_files.
Does that clarify things? If you provide details of the kind of
ui_module you're having trouble with, maybe I or somebody can give you
a more concrete example.
Casey
On Sep 23, 7:36 am, Carl <
doc...@gmail.com> wrote:
> That part is clear.
>
> What's not clear is howto use these methods in a template file. Is
> this possible and what is the syntax?
>
> Thanks,
> Carl
>
> On Wed, Sep 23, 2009 at 6:09 AM, Tzury Bar Yochay
>
>
>
> <
afro.syst...@gmail.com> wrote:
>
> > athttp://
www.tornadoweb.org/documentation#ui-modules