pug-php/pug-filter-coffee-script

View on GitHub
src/Pug/Filter/CoffeeScript.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Pug\Filter;

use NodejsPhpFallback\CoffeeScript as CoffeeScriptPhpEngine;

class CoffeeScript extends Script
{
    protected $textType = 'javascript';

    public function parse($code)
    {
        return new CoffeeScriptPhpEngine($code);
    }
}