add index for templates in php files and provide linemarker #15