library smarty
改自latrell/smarty,增加配置项,让其支持fis smarty插件的配置项.
taogov/smarty
改自latrell/smarty,增加配置项,让其支持fis smarty插件的配置项.
- Thursday, February 1, 2018
- by wwt142
- Repository
- 1 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Laravel 5.5 + Fis3 静态资源管理系统
安装
composer require taogov/smarty
配置
'providers' => array(
// ...
taogov\Smarty\SmartyServiceProvider::class,
)
- 执行发布配置文件:
php artisan vendor:publish --provider="taogov\Smarty\SmartyServiceProvider" --tag=config --tag=plugins
使用
- 加入providers:
- 假设有模板文件
views/blog/post.tpl,那controller中是这样渲染的,View::make('blog.post')
- 关于
{include} 或 {extends} 标签的参数传递, 需要使用全路径的写法, 例如: {extends file="blog/post.tpl"}
配置项解释
- 模板放置路径:
template_path
- 模板缓存路径:
cache_path
- 模板编译路径:
compile_path
- fis3 产出的namespace-map.json 放置路径:
configs_paths
dev-master
9999999-dev
改自latrell/smarty,增加配置项,让其支持fis smarty插件的配置项.
Sources
Download
MIT
The Requires
by
taogov
laravel
templating
smarty
view
fis
fis smarty
v1.0
1.0.0.0
改自latrell/smarty,增加配置项,让其支持fis smarty插件的配置项.
Sources
Download
MIT
The Requires
by
taogov
laravel
templating
smarty
view
fis
fis smarty