oliverdavies.uk/source/_talks/test-drive-twig-with-sculpin.md

25 lines
1.2 KiB
Markdown
Raw Normal View History

2024-01-03 20:00:00 +00:00
---
title: Test Drive Twig with Sculpin
description: With Drupal 8 just around the corner, see how you can develop your Twig skills with Sculpin - a static site generator based on Symfony components and Twig.
speakerdeck:
2024-02-07 20:01:19 +00:00
id: 54589d2e50a3476a9a75aed809e9edf1
ratio: "1.77777777777778"
url: https://speakerdeck.com/opdavies/test-drive-twig-with-sculpin
2024-01-03 20:00:00 +00:00
code: https://github.com/opdavies/sculpin-demo
events:
2024-02-07 20:01:19 +00:00
-
name: DrupalCamp North 2015
location: Sunderland, UK
url: http://drupalcampnorth.org
date: 2015-07-25
2024-01-03 20:00:00 +00:00
---
[Sculpin][1] is a static site generator written in PHP, and based on [Symfony components][2]. It uses [YAML][3] and [Twig][4], which makes it very appealing to Drupal people wanting to learn these in preparation for Drupal 8.
This session covered how to install Sculpin itself, as well as how to use it to build a static site from Markdown, HTML and Twig templates. We also covered Sculpin concepts such as content types, themes and partials, and Twig layouts, blocks and inheritance, as well as some tips and tricks that I've found whilst developing with Sculpin.
[1]: https://sculpin.io
[2]: http://symfony.com/doc/current/components/index.html
[3]: http://yaml.org
[4]: http://twig.sensiolabs.org