Tags:
create new tag
, view all tags

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

 
Topic revision: r2 - 2006-05-11 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.