Revert "Remove dependency on using script tags for inline templates per #510, also remove need to specify type."

This reverts commit bf9c256040c07e6c44c90aa3b6ff37d31a953100.