定制 saltybeagle/savant3 二次开发

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

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

saltybeagle/savant3

Composer 安装命令:

composer require saltybeagle/savant3

包简介

Savant3 template engine

README 文档

README

Savant: The Simple, Elegant Template System for PHP

Savant is a powerful but lightweight object-oriented template system for PHP.

Unlike other template systems, Savant by default does not compile your templates into PHP; instead, it uses PHP itself as its template language so you don't need to learn a new markup system.

Why Use Savant for Templates?

  • You don't need to learn a new language or markup to create a template. The template language is PHP, and the template file is a regular PHP file.
  • You don't have to worry about separate directories (or permissions on those directories) for compiled template sources, because Savant is not a compiling engine (the template scripts are already written in PHP).
  • Even though Savant is not itself a compiling system, you can write your own compiler and plug it into Savant; this means you can use any template markup system you like.
  • The Savant source code is easy to read, understand, and extend, because it is exceptionally well-commented.
  • The object-oriented plugin, filter, error, and compiler classes for Savant are easy to use, understand, and extend.
  • Because your template script is a regular PHP script, you can sprinkle it with comments and use phpDocumentor to document it.

Test suite

 phpunit tests/

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL
  • 更新时间: 2014-03-20