Permalink
Browse files

Configuring: added latte.templateClass (#675)

  • Loading branch information...
f3l1x authored and dg committed Mar 7, 2018
1 parent b8f62c1 commit d2e738b17939fb2241923412cba9a329386aa7a9
Showing with 9 additions and 4 deletions.
  1. +5 −2 cs/configuring.texy
  2. +4 −2 en/configuring.texy
@@ -235,12 +235,15 @@ Lze přepínat HTML a XHTML režim šablon a registrovat vlastní [Latte |latte:
latte:
xhtml: yes # výchozí je no
macros:
- App\MyLatteMacros::register # statická metoda, classname nebo callable
- @App\MyLatteMacrosFactory # služba s metodou install
- App\MyLatteMacros::register # statická metoda, classname nebo callable
- @App\MyLatteMacrosFactory # služba s metodou install
- @App\MyLatteMacrosFactory::register # služba s metodou register

templateClass: App\MyTemplateClass # výchozí je Nette\Bridges\ApplicationLatte\Template

services:
- App\MyLatteMacrosFactory

\--


@@ -231,10 +231,12 @@ You can turn on and off XHTML rendering mode and register custom [Latte |latte:]
latte:
xhtml: yes # default is no
macros:
- App\MyLatteMacros::register # static method, classname or callable
- @App\MyLatteMacrosFactory # service with install method
- App\MyLatteMacros::register # static method, classname or callable
- @App\MyLatteMacrosFactory # service with install method
- @App\MyLatteMacrosFactory::register # service with register method

templateClass: App\MyTemplateClass # default is Nette\Bridges\ApplicationLatte\Template

services:
- App\MyLatteMacrosFactory
\--

0 comments on commit d2e738b

Please sign in to comment.