+ All Categories

Sculpin

Date post: 02-Jul-2015
Category:
Upload: chris-tankersley
View: 97 times
Download: 0 times
Share this document with a friend
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.
23
Sculpin Chris Tankersley NomadPHP November 2014
Transcript
Page 1: Sculpin

Sculpin

Chris Tankersley

NomadPHP November 2014

Page 2: Sculpin

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

Page 3: Sculpin

3

What is Sculpin?

Page 4: 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

Page 5: Sculpin

5

In Short...

Turns a collection of static files into a dynamically generated site

Page 6: Sculpin

6

Other systems

● Jekyll● Octopress● Pelican● Phrozen● PieCrust

Page 7: Sculpin

7

Why?

● Not everything requires PHP● Static sites are quick● Lets you use existing tools

Page 8: Sculpin

8

The Guts

● A bit of symfony● Embedded Composer● React● Twig

Page 9: Sculpin

9

What's it look like?

Page 10: Sculpin

10

index.md

Page 11: Sculpin

11

Generate and check

Page 12: Sculpin

12

Let's throw in some templates

Page 13: Sculpin

13

Create a Twig template

Page 14: Sculpin

14

Tell our index.md about it

Page 15: Sculpin

15

Generate the site!

Page 16: Sculpin

16

Add some posts

Page 17: Sculpin

17

Tell Sculpin about the posts

Page 18: Sculpin

18

Tell our index.md about them

Page 19: Sculpin

19

Create a post

Page 20: Sculpin

20

Generate the site

Page 21: Sculpin

21

Deployment

● Copy everything in output_(dev|prod) to your live environment– FTP, rsync, whatever

Page 22: Sculpin

22

More Info

● https://sculpin.io/● https://github.com/sculpin/sculpin● @getsculpin

Page 23: Sculpin

23

Thanks!

● https://joind.in/128006● @dragonmantank● [email protected]


Recommended