all templating
merged