added request attribute as an alternative for parameter injection with templating
readded $templates:TYPE_ERROR (is referenced on line 258)
correction of parameter name