Skip to content

Instantly share code, notes, and snippets.

@mishak87
Created July 9, 2015 13:07
Show Gist options
  • Save mishak87/59fa70394e3885bdb04a to your computer and use it in GitHub Desktop.
Save mishak87/59fa70394e3885bdb04a to your computer and use it in GitHub Desktop.
Debug Latte output
#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';
echo (new Latte\Engine)
->setLoader(new Latte\Loaders\StringLoader)
->compile(file_get_contents('php://stdin'));
#!/bin/bash
curl -sS https://getcomposer.org/installer | php
php composer.phar require latte/latte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment