ajaximple / template
AJAXimple的Nette TemplateFactory扩展。
v3.0.0
2020-05-06 15:11 UTC
Requires
- php: >=7.3
- nette/application: ^3.0
This package is auto-updated.
Last update: 2024-09-07 01:18:57 UTC
README
此扩展扩展了Nette\Bridges\ApplicationLatte\TemplateFactory以添加新过滤器。
添加的过滤器
loadFile
<link href="{$basePath}{('/css/card.css')|loadFile}" rel="stylesheet">
在www目录中位于文件名之后添加修改后的参数,因此每次更改后浏览器都会下载此文件。
安装
下载
安装AJAXimple/Template
的最佳方式是使用Composer
$ composer require ajaximple/template
注册
您可以使用neon配置启用此扩展
services:
latte.templateFactory: AJAXimple\Template\TemplateFactory(wwwDir: %wwwDir%) # wwwDir is path to the dir with yours public files on your harddrive
结论
此扩展需要Nette3.0,并由Antonín Jehlář © 2020拥有版权