for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Acacha\Llum\Compiler;
class RCFileCompiler {
/**
* Compile the template using the given data.
*
* @param $template
* @param $data
* @return mixed
*/
public function compile($template, $data)
{
foreach($data as $key => $value)
$template = preg_replace("/\\$$key\\$/i", $value, $template);
}
return $template;