added templating functionality ... we can now work with imported HTML templates