I hope I understand what you want ... just to avoid actually typing the tags? Because if they are going to be in the outputted HTML file, they are going to get printed somehow, by somebody :-)
One thing to consider is that you can use TT2 to make TT2 templates ... So your default template for making an .html.tmpl could include the TT2 tags to display the debug info you want ...
Or, if you make your templates by hand, since the text strings are going to be at the top and bottom of every template file you have, it doesn't seem necessary for TT2 to magically insert them. Instead, you could have the lines pre-inserted in the actual text files you create for templates, for example by using a macro in vim:
# in ~/.vimrc
" Set up templates for new files
autocmd BufNewFile * 0r ~/.vim/templates/%:e.template
and then
# in ~/.vim/templates/tmpl.template
<!-- Start output from [% component.name %] -->
<!-- End output from [% component.name %] -->
and then whenever you open a new file in vim it will have the tags pre-inserted.
Hope this is close to the mark of what you needed!
|