Implemented basic templating engine for custom elements.