nickyeoman/nytwig
最新稳定版本:1.0.10
Composer 安装命令:
composer require nickyeoman/nytwig
包简介
Twig template scaffolding
README 文档
README
This is the scaffolding Nick uses for his web projects.
It is based, but heavly modifed, on html5boilerplate.
Installation
You will have to configure your application to include the vendor directory and asssign the namespace "nytwig" (required)
How To Twig
$loader->addPath('vendor/nickyeoman/nytwig/src', 'nytwig');
How To Symfony
Open the file config/packages/twig.yaml and add (under "default_path"):
paths: '%kernel.project_dir%/vendor/nickyeoman/nytwig/src': 'nytwig'
Use
{% extends '@nytwig/master.html.twig' %}
{% block body %}
<p>Content Here</p>
{% endblock %}
Overrides
In your view directly create a folder named 'cms' and create the file you want to override there with the same name.
统计信息
- 总下载量: 118
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: CC0-1.0
- 更新时间: 2022-11-13