libs/web: add support for string templates to luci.template module