承接 north/template 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

north/template

Composer 安装命令:

composer require north/template

包简介

A simple template system

README 文档

README

Build Status

A simple template system.

Installation

composer require north/template

Examples

More docs here

use North\Template\Template;

$template = new Template('path/to/templates');

$template->render('index');

index.php

<?php $this->extend('layouts/app', ['title' => 'Startpage']) ?>
<?php $this->block('content') ?>
    <?php $this->include('partials/content', ['title' => 'Hello, world']) ?>
<?php $this->endblock() ?>

layouts/app.php

<!doctype html>
<html>
  <head>
    <title><?php echo $this->escape($title) ?></title>
  </head>
  <body>
    <?php $this->yield('content') ?>
  </body>
</html>

partials/content.php

<div class="content">
    <h1><?php echo $this->escape($title) ?></h1>
</div>

More examples in the tests/TemplateTest.php

License

MIT © Fredrik Forsmo

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固