mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 10:41:25 +02:00
24 lines
1.2 KiB
Markdown
24 lines
1.2 KiB
Markdown
---
|
|
title: Templates and Views
|
|
summary: This guide showcases the SilverStripe template engine and learn how to build your own themes.
|
|
introduction: SilverStripe comes with it's own templating engine. This guide walks you through the features of the template engine, how to create custom templates and ways to customise your data output.
|
|
icon: file-code
|
|
---
|
|
|
|
Most of what will be public on your website comes from template files that are defined in SilverStripe. Either in the
|
|
core framework, the modules or themes you install, and your own custom templates.
|
|
|
|
SilverStripe templates are simple text files that have an `.ss` extension. They can contain any markup language (e.g HTML,
|
|
XML, JSON..) and are processed to add features such as `$Var` to output variables and logic controls like
|
|
`<% if $Var %>`. In this guide we'll look at the syntax of the custom template engine [SSViewer](api:SilverStripe\View\SSViewer) and how to render
|
|
templates from your controllers.
|
|
|
|
[CHILDREN Exclude=How_Tos]
|
|
|
|
## How to's
|
|
|
|
[CHILDREN Folder=How_Tos]
|
|
|
|
## Related Lessons
|
|
* [Migrating static templates into your theme](https://www.silverstripe.org/learn/lessons/v4/migrating-static-templates-into-your-theme-1)
|