定制 endel/slim-lightncandy-view 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

endel/slim-lightncandy-view

Composer 安装命令:

composer require endel/slim-lightncandy-view

包简介

Slim Framework view helper built on top of the Handlebars/Mustache template engines, via lightncandy.

README 文档

README

Build Status

This is a Slim Framework view helper built on top of the Lightncandy templating component, which is an extremely fast PHP implementation of handlebars and mustache.

You can use this component to create and render templates in your Slim Framework application.

Requires Slim 3.x.x

Install

Via Composer

$ composer require endel/slim-lightncandy-view

Usage

// Create Slim app
$app = new \Slim\App();

// Register Lightncandy View helper
$app->register(new \Slim\Views\Lightncandy('path/to/templates', [
    'helpers' => array(...)
    'block_helpers' => array(...)
]));

// Define named route
$app->get('/hello/{name}', function ($request, $response, $args) {
    $this['view']->render('profile', [
        'name' => $args['name']
    ]);
})->setName('profile');

// Run app
$app->run();

Examples

Take a look at the example directory for usage examples.

Testing

phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固