Date post: | 02-Jul-2015 |
Category: |
Technology |
Upload: | chris-tankersley |
View: | 97 times |
Download: | 0 times |
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