<x-postpress-code>

Fork me on GitHub

README.md

Examples:

Static Content:

<html>
<body>
  <x-php>
    <script type="text/php">
      <?php
        $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.'));

        foreach ($it as $name => $entry) {
          echo "$name <br/>";
        }
    </script>
  </x-php>
</body>
</html>
#!/usr/bin/env php
<?php
$filename="filename";
$search="foo";

foreach(file($filename) as $file) {
  if(strpos($file, $search) !== false) {
    echo $file;
  }
}
#/usr/bin/env bash
for file in *; do
  echo $file
done
using System;

namespace Application
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("Enter username:");

      string userName = Console.ReadLine();

      Console.WriteLine("Username is: " + userName);
    }
  }
}

Lazy Loaded Content: