2019-11-18 05:58:33 +01:00
---
2014-09-21 02:07:58 +02:00
title: Templates and Views
summary: This guide showcases the SilverStripe template engine and learn how to build your own themes.
2016-03-30 02:17:28 +02:00
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.
2019-11-18 05:58:33 +01:00
icon: file-code
---
2014-09-21 02:07:58 +02:00
2014-10-13 09:49:30 +02:00
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.
2014-09-21 02:07:58 +02:00
2021-05-16 20:52:27 +02:00
SilverStripe templates are simple text files that have an `.ss` extension. They can contain any markup language (e.g HTML,
2014-10-13 09:49:30 +02:00
XML, JSON..) and are processed to add features such as `$Var` to output variables and logic controls like
2017-07-03 03:22:12 +02:00
`<% 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
2014-10-13 09:49:30 +02:00
templates from your controllers.
2014-09-21 02:07:58 +02:00
2014-10-13 09:49:30 +02:00
[CHILDREN Exclude=How_Tos]
## How to's
2016-03-30 02:17:28 +02:00
[CHILDREN Folder=How_Tos]
2017-11-28 02:11:52 +01:00
## Related Lessons
2021-05-16 20:52:27 +02:00
* [Migrating static templates into your theme ](https://www.silverstripe.org/learn/lessons/v4/migrating-static-templates-into-your-theme-1 )