All Projects → fenom-template → Fenom

fenom-template / Fenom

Licence: other
Template Engine for PHP

Projects that are alternatives of or similar to Fenom

Jinja2cpp
Jinja2 C++ (and for C++) almost full-conformance template engine implementation
Stars: ✭ 257 (-39.67%)
Mutual labels:  template-engine
Slime
Minimalistic HTML templates for Elixir, inspired by Slim.
Stars: ✭ 315 (-26.06%)
Mutual labels:  template-engine
Markupsafe
Safely add untrusted strings to HTML/XML markup.
Stars: ✭ 367 (-13.85%)
Mutual labels:  template-engine
Doxyrest
A compiler from Doxygen XML to reStructuredText -- hence, the name. It parses XML databases generated by Doxygen and produces reStructuredText for the Python documentation generator Sphinx.
Stars: ✭ 265 (-37.79%)
Mutual labels:  template-engine
Email Templates
📫 Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more!
Stars: ✭ 3,291 (+672.54%)
Mutual labels:  template-engine
Pug
Pug template engine for PHP
Stars: ✭ 341 (-19.95%)
Mutual labels:  template-engine
bart
A compile time templating language for Rust inspired by Mustache
Stars: ✭ 29 (-93.19%)
Mutual labels:  template-engine
Bladeone
The standalone version Blade Template Engine without Laravel in a single php file and without dependencies
Stars: ✭ 411 (-3.52%)
Mutual labels:  template-engine
Rivets
Lightweight and powerful data binding.
Stars: ✭ 3,221 (+656.1%)
Mutual labels:  template-engine
Squirrelly
Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript ⛺
Stars: ✭ 359 (-15.73%)
Mutual labels:  template-engine
Docpad
Empower your website frontends with layouts, meta-data, pre-processors (markdown, jade, coffeescript, etc.), partials, skeletons, file watching, querying, and an amazing plugin system. DocPad will streamline your web development process allowing you to craft powerful static sites quicker than ever before.
Stars: ✭ 3,035 (+612.44%)
Mutual labels:  template-engine
Http Rpc
Lightweight REST for Java
Stars: ✭ 298 (-30.05%)
Mutual labels:  template-engine
Thymeleaf Spring
Thymeleaf integration module for Spring
Stars: ✭ 349 (-18.08%)
Mutual labels:  template-engine
Cookie
A Template-based File Generator. Like cookiecutter but works with file templates instead of project templates.
Stars: ✭ 261 (-38.73%)
Mutual labels:  template-engine
Spring Comparing Template Engines
Demo project to show different Java templating engines in combination with Spring MVC
Stars: ✭ 377 (-11.5%)
Mutual labels:  template-engine
Hunt Framework
A Web framework for D Programming Language. Full-stack high-performance.
Stars: ✭ 256 (-39.91%)
Mutual labels:  template-engine
Mikado
Mikado is the webs fastest template library for building user interfaces.
Stars: ✭ 323 (-24.18%)
Mutual labels:  template-engine
Microwebsrv
A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
Stars: ✭ 420 (-1.41%)
Mutual labels:  template-engine
Ef.js
The timeless, future facing front-end framework
Stars: ✭ 385 (-9.62%)
Mutual labels:  template-engine
Jetbrick Template 2x
Template Engine for Java
Stars: ✭ 351 (-17.61%)
Mutual labels:  template-engine

Fenom - Template Engine for PHP

Fenóm - lightweight and fast template engine for PHP.


Quick Start

Install

If you use composer in your project then you can to install Fenom as package. However, if you are not using composer you have to configure autoloader to work with Fenom. Fenom implements the PSR-0 PHP standard to load classes which are located in the src/ directory. Templater already has own autoload-function, to register call method Fenom::registerAutoload:

Fenom::registerAutoload();

Setup

There is two way to create Fenom instance:

  • Long way: use operator new
  • Shot way: use static factory-method

Long way. Create you own template provider or default provider Fenom\Provider (that is provider read there). Using provider instance create Fenom instance:

$fenom = new Fenom(new Fenom\Provider($template_dir));

After that, set compile directory:

$fenom->setCompileDir($template_cache_dir);

This directory will be used for storing compiled templates, therefore it should be writable for Fenom. Now Fenom is ready to work and now you can to configure it:

$fenom->setOptions($options);

Short way. Creating an object via factory method with arguments from long way.

$fenom = Fenom::factory($template_dir, $template_cache_dir, $options);

Now Fenom is ready to work.

Usage

Example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].