GOAL:
I want to seperate some perl-methods from my PresentationTemplate to reuse them in an other PTs. So I'm searching for an easy (one or two lines) way of including external methods, which uses iw_perl into my tpl.
PROBLEM:
Within my methods a couple of iw_perl functions are used like:
- iwpt_output
- iwpt_dcr_list
- iwpt_value
During PT-Iterpratation these functions are substituted by outer strings, eg:
iwpt_dcr_list() -> eval(TeamSite:

CRparser::dcr_list_perl_name($1)) (found in iw_xml)
That means these functions aren't really exiting, so you can't use them outside of a pt.
TRIED SOLUTIONS:
- an external perl lib: here the replacement is happening
- IW_Include is also not working because in the outer TPL I wont have the function from inside tpl available.
- using require "..." at least iw_ptoutput is working, but the other ones are still breaking the pt