All Projects → symfony → templating

symfony / templating

Licence: MIT License
The Templating component provides all the tools needed to build any kind of template system.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to templating

terraform-provider-carvel
Carvel Terraform provider with resources for ytt and kapp to template and deploy to Kubernetes
Stars: ✭ 40 (-95.94%)
Mutual labels:  templating
button-text-card
Custom, "neumorphism" Lovelace card
Stars: ✭ 95 (-90.36%)
Mutual labels:  templating
view
Template Engine For AdonisJS
Stars: ✭ 13 (-98.68%)
Mutual labels:  templating
polyfill-php81
This component provides functions unavailable in releases prior to PHP 8.1.
Stars: ✭ 618 (-37.26%)
Mutual labels:  symfony-component
qaz
qaz—A CLI tool for Templating & Managing stacks in AWS Cloudformation
Stars: ✭ 89 (-90.96%)
Mutual labels:  templating
SketchGen
A Swift command line tool for generating source code from sketch files
Stars: ✭ 27 (-97.26%)
Mutual labels:  templating
kite
small + super-fast HTML templating
Stars: ✭ 18 (-98.17%)
Mutual labels:  templating
fake-sms-notifier
Fake SMS (as email during development) Notifier Bridge
Stars: ✭ 16 (-98.38%)
Mutual labels:  symfony-component
http-kernel
The HttpKernel component provides a structured process for converting a Request into a Response.
Stars: ✭ 7,693 (+681.02%)
Mutual labels:  symfony-component
dowels
🔨 a tiny but powerful javascript library that performs client-side routing, templating, and REST API communication to help you get your single-page web applications running in seconds
Stars: ✭ 13 (-98.68%)
Mutual labels:  templating
tags
HTML tags in Go
Stars: ✭ 50 (-94.92%)
Mutual labels:  templating
leven
😋 Make your own blog!
Stars: ✭ 54 (-94.52%)
Mutual labels:  templating
stati
An extensible and Jekyll-compatible PHP static website generator
Stars: ✭ 21 (-97.87%)
Mutual labels:  symfony-component
discord-notifier
Provides Discord integration for Symfony Notifier
Stars: ✭ 24 (-97.56%)
Mutual labels:  symfony-component
polymerase
A tool for populating templates with environment variables and Vault values
Stars: ✭ 84 (-91.47%)
Mutual labels:  templating
dry
Dry is a new template engine and language, and is a superset of Shopify's Liquid, with first-class support for advanced inheritance features, and more. From the creators of Enquirer, Assemble, Remarkable, and Micromatch.
Stars: ✭ 66 (-93.3%)
Mutual labels:  templating
gondul
Network management/monitoring system specialized for temporary events
Stars: ✭ 40 (-95.94%)
Mutual labels:  templating
yaproq
A templating language in Swift
Stars: ✭ 57 (-94.21%)
Mutual labels:  templating
be-course-19-20
🎓 Backend · 2019-2020 · Curriculum and Syllabus
Stars: ✭ 18 (-98.17%)
Mutual labels:  templating
engine
A pragmatic approach to templating for PHP 7.x+
Stars: ✭ 31 (-96.85%)
Mutual labels:  templating

Templating Component

The Templating component provides all the tools needed to build any kind of template system.

It provides an infrastructure to load template files and optionally monitor them for changes. It also provides a concrete template engine implementation using PHP with additional tools for escaping and separating templates into blocks and layouts.

Getting Started

$ composer require symfony/templating
use Symfony\Component\Templating\Loader\FilesystemLoader;
use Symfony\Component\Templating\PhpEngine;
use Symfony\Component\Templating\Helper\SlotsHelper;
use Symfony\Component\Templating\TemplateNameParser;

$filesystemLoader = new FilesystemLoader(__DIR__.'/views/%name%');

$templating = new PhpEngine(new TemplateNameParser(), $filesystemLoader);
$templating->set(new SlotsHelper());

echo $templating->render('hello.php', ['firstname' => 'Fabien']);

// hello.php
Hello, <?= $view->escape($firstname) ?>!

Resources

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].