Added new homepage and started improving template API
Added trimming to templates
Added element requirement/exclusion in templates