<?php | |
$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"> | |
{{post.content}} | |
</div> | |
</section> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment