Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.58 KB

File metadata and controls

39 lines (35 loc) · 1.58 KB

Clover Sketch: Template Engine

Clover Sketch: Template Engine; fully inspire by Vue.js and Laravel Blade. Built-in XSS attack prevention and @CSRF token generation.

Code Coverage CodeQL Tests Packagist Version Packagist Dependency Version Packagist License Packagist Downloads Packagist Stars

Example

<h2> {{ $name }} </h2>

Output:

<?php echo htmlspecialchar($name); ?>

Example 2

<clover:@css>
    h2
    {
        color: red;
    }
</clover:@css>

output:

<style>
h2{
  color: red;
}
</style>