updated the inline version

Won't work until I add support for inline templates. Right now I prefer
to load the files externally