Dear friends,

  I want to write a macro, but it does not work. I have a collection
of source files so far successfully processed by ttree, where the main
wrapper (wrapper = main in .ttree/cfg/...) originally was one line:

[% content WRAPPER html/gen_html + structure/layout %]

  I added one line to make main look as follows:

[%- PROCESS macros/links -%]
[% content WRAPPER html/gen_html + structure/layout %]

  where macros/links is in the same lib directory as other functioning
templates and looks like this:

[%- MACRO localUri BLOCK -%]
Why does it not work?
[%- END -%]

  Now I was expecting that whenever I write in a source file

[% localUri -%]

  it would include above sentence ('Why does it not work?'). But
instead, the directive resolves to nothing. There is no error message
when I run ttree. ttree is set to update all files, which it does.

  Any idea why my macro does not work?

  Thanks!

     Take care
     Oliver

-- 
Oliver Ruebenacker, Post-Doc Researcher
BioPAX Integration at Virtual Cell
Center for Cell Analysis and Modeling
http://www.ccam.uchc.edu/

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to