Why Static Sites? • Few restrictions on server environment • Easy to deploy (scp, rsync, GitHub) • No database dependencies • Less things to break • Should absorb traffic bursts more easily beau.io/tnphp2013
Why Built Yet Another Static Site Generator? • Not Invented Here is a hard habit to kick • Contributed to Jekyll and Octopress • Tried working with Phrozn • Somehow managed to miss PieCrust • Lurking in #symfony and #symfony-dev • Found Composer beau.io/tnphp2013
--- layout: default --- # This is a markdown file with YAML frontmatter {% extends "default" %} {% block content %} # This is a markdown file with YAML frontmatter {% endblock %} beau.io/tnphp2013
{% if page.special_value is defined %} Special value exists and is {{ page.special_value }}!. {% endif %} {% block content %}Fallback content{% endblock %}
--- layout: default special_value: nice --- # This is a markdown file with YAML frontmatter beau.io/tnphp2013
{% if page.special_value is defined %} Special value exists and is {{ page.special_value }}!. {% endif %} {% block content %}Fallback content{% endblock %}
--- layout: default special_value: nice --- # This is a markdown file with YAML frontmatter beau.io/tnphp2013
Special value exists and is nice!. This is a markdown file with YAML frontmatter