Skip to content

Instantly share code, notes, and snippets.

@laras126
Last active July 7, 2019 15:55
Show Gist options
  • Select an option

  • Save laras126/a8fee28df36c08ed7a3f9a834f3aaead to your computer and use it in GitHub Desktop.

Select an option

Save laras126/a8fee28df36c08ed7a3f9a834f3aaead to your computer and use it in GitHub Desktop.
<?php
// See: https://timber.github.io/docs/guides/cheatsheet/
$context = Timber::context();
$context['post'] = new Timber\Post();
Timber::render( 'single.twig', $context );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment