承接 tigron/skeleton-template 相关项目开发

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

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

tigron/skeleton-template

最新稳定版本:v0.1.9

Composer 安装命令:

composer require tigron/skeleton-template

包简介

Template library for skeleton

README 文档

README

Description

General templating for Skeleton. This library supports multiple templating libraries as back-end. Currently only the Twig back-end is supported via skeleton-template-twig

Installation

Installation via composer:

composer require tigron/skeleton-template

Howto

// Initialize a template object
$template = new \Skeleton\Template\Template();

// Add a template path
$template->add_template_path($my_very_cool_path);

// Set a translation object (optional);
$template->set_translation(\Skeleton\I18n\Translation $translation);

// Assign variables
$template->assign('my_variable_name', 'content1');
$template->assign('my_variable_name2', 'content2');

// return the rendered template
$html = $template->render('test.twig');

// $html contains the rendered template

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-19