Upload
chris-tankersley
View
97
Download
0
Embed Size (px)
DESCRIPTION
We can build anything we want with PHP, be it a small little blog for ourselves to a giant world-spanning social media network. There are times though that we do not need all of the dynamic goodness that PHP brings and we just need a site that sits there. Sculpin is a static site generator that leverages the power of PHP and Twig to allow developers to quickly generate flat HTML sites, but completely automate the process of stitching all of that HTML together. We’ll quickly run through getting started with Sculpin and the power that it provides.
Citation preview
Sculpin
Chris Tankersley
NomadPHP November 2014
2
Who Am I?
● A PHP Developer for 10 Years● Lots of projects no one uses, and a
few some do● https://github.com/dragonmantank
3
What is Sculpin?
4
Static Site Generator
Sculpin is a static site generator written in PHP. It converts Markdown files, Twig
templates or standard HTML into a static HTML site that can be easily deployed.
@beausimensen
5
In Short...
Turns a collection of static files into a dynamically generated site
6
Other systems
● Jekyll● Octopress● Pelican● Phrozen● PieCrust
7
Why?
● Not everything requires PHP● Static sites are quick● Lets you use existing tools
8
The Guts
● A bit of symfony● Embedded Composer● React● Twig
9
What's it look like?
10
index.md
11
Generate and check
12
Let's throw in some templates
13
Create a Twig template
14
Tell our index.md about it
15
Generate the site!
16
Add some posts
17
Tell Sculpin about the posts
18
Tell our index.md about them
19
Create a post
20
Generate the site
21
Deployment
● Copy everything in output_(dev|prod) to your live environment– FTP, rsync, whatever
22
More Info
● https://sculpin.io/● https://github.com/sculpin/sculpin● @getsculpin