[Catalyst] Re: Patch for Catalyst::View::Mason

Andrew Rodland arodland at comcast.net
Sun Mar 9 20:32:39 GMT 2008


On Sunday 09 March 2008 07:43:04 am Aristotle Pagaltzis wrote:
> I see your bid and raise this:
>
>     autocmd BufRead */templates/tt/*    set ft=tt2html
>     autocmd BufRead */templates/mason/* set ft=mason
>
> Wheee.
>

This is the slightly more effective version:

au BufNewFile,BufRead */templates/tt/* setf tt2html
au BufNewFile,BufRead */templates/mason/* setf mason

Main difference being the BufNewFile handling (which you'll really miss if 
it's not there). setf is also "more proper" but it probably makes no 
difference at all in this case :)

Andrew



More information about the Catalyst mailing list