ajaximple/template

Nette TemplateFactory extensions from AJAXimple.

v3.0.0 2020-05-06 15:11 UTC

This package is auto-updated.

Last update: 2024-04-07 00:23:02 UTC


README

This extension extends Nette\Bridges\ApplicationLatte\TemplateFactory for new filters.

Added filters

loadFile

<link href="{$basePath}{('/css/card.css')|loadFile}" rel="stylesheet">

add modified parameter after file name located in www dir, so after each changes will be this file downloaded by browser.

Instalation

Download

The best way to install AJAXimple/Template is using Composer:

$ composer require ajaximple/template

Registering

You can enable the extension using your neon config:

services:
	latte.templateFactory: AJAXimple\Template\TemplateFactory(wwwDir: %wwwDir%) # wwwDir is path to the dir with yours public files on your harddrive

Conclusion

This extension requires Nette3.0 and it is property of Antonín Jehlář © 2020