Why invent a new wheel? There is a way in TS, which is more powerful than your suggestion: example: page.20 = TEMPLATE page.20 { template = TEXT template.value=###TEST### |||| ###TEST2### marks { TEST= TEXT TEST.value = This is replacing a simple marker in the HTML-code TEST2=TEXT TEST2.field=title }