How to visualise the templates/ directory
Working out the dependencies in templates\ is a tricky. Many TMPL:DEF definitions and TMPL:P uses, with things being defined in all sorts of ways.
It would be useful to get some tips on what people use to get visibility of the dependencies.
Shell
grep like expressions etc would be appreciated.
--
Contributors: MartinCleaver
Discussion
--
MartinCleaver - 11 May 2006
grep TMPL:DEF *.tmpl | perl -plane 's/%TMPL:DEF{"(.*?)"}%.*/$1/'
--
MartinCleaver - 11 May 2006
(the last one shows what defines things)
grep TMPL:P *.tmpl | perl -plane 's/%TMPL:P{.*?".*?".*}%.*/$1/'
Should show where stuff is used.
Doesn't work properly.
--
MartinCleaver - 11 May 2006
grep TMPL:INCLUDE *.tmpl | perl -plane 's/%TMPL:INCLUDE{"(.*?)"}%.*/$1/'
shows the include hierarchy
--
MartinCleaver - 11 May 2006