> server > { > stuff > [% INCLUDE thing %] > } > > where thing has > > Foo > Bar > > and end up with > > server > { > stuff > foo > bar > } > > is there anyway to get it so that it is > > server > { > stuff > foo > bar > }
How about something like (untested): server { stuff [%- INCLUDE thing | indent(4) %] } The indent filter will indent each line of a multi-line block of stuff. The minus sign in the start tag "[%-" should remove the whitespace in the template before the tag (i.e. before the first line of "thing"), before the indent is applied. http://template-toolkit.org/docs/manual/Filters.html#section_indent_pad_ HTH, Larry _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates