程式器 - Filters

程式器實際上就是在模板中執行一些額外的程式,

例如在模板中執行 JavaScript,或者原生 PHP 程式。

Avane

:css
    body, html {
        height: 100%;
        color : black;
    }

:js
    if (someThing) {
        doSomething();
    }

:php
    function someFunc() {
        // 做些事情
    }

渲染效果

<style>
body, html {
   height: 100%;
   color : black;
}
</style>

<script>
if (someThing) {
   doSomething();
}
</script>

<?php 
function someFunc() {
   // 做些事情
}
?>

results matching ""

    No results matching ""