Skip to content

Instantly share code, notes, and snippets.



Last active Sep 27, 2017
What would you like to do?
$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;
Timber::render( array( 'page.example.twig', 'page.twig' ), $context );
{% extends "base.twig" %}
{% block content %}
<article class="section post-type-{{post.post_type}}" id="post-{{post.ID}}">
<div class="wrap">
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment