Allow changing source.
Preload templates in html.