[Gas] A Change the template naming convention

Bob Cook bobcook at onthejob.net
Thu Mar 1 16:17:21 CST 2001


Hi Folks,

I requested a change to the template naming convention and made the
changes to the OutputManager after talking to Zach.

The change is as follows. 
Templates may now by named in one of two ways:
1. They may simply have the name of the perl class (page) that they
output. (e.g., if a package is named GasEx::State::foo, the template may
be named 'foo').
2. They may be named the same name as their package with a .tmpl
extension. (e.g., in the above example, the template could be named
'foo.tmpl'). 

This makes identifying templates alittle easier for newbies (like me
:-). It also allows such nice things as syntax highlighting of templates
with html syntax (e.g. in vim, simply make a copy of the html.vim syntax
file and have something like:

au BufNewFile,BufRead *.tmpl so ~/.html.vim

in your .vimrc file. emacs users (I'm pretty sure) have a way of getting
syntax highlighting too for files with a particular extension). At some
point I can dedicate time to writing a .tmpl syntax highlighting file. But
right now I'm swamped.

-Bob

-- 
/*********************************************\
* Bob Cook              On The Job Consulting *
* bobcook at onthejob.net  217-278-3933          *
*                                             *
*    "Kyrie Eleison...Dona Nobis Pacem"       *   
*                                             *
\*********************************************/




More information about the Gas mailing list