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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-05-11 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.