diff --git a/README.md b/README.md index 771361d..509eb64 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ 5. 支援自動編譯 Coffee、Sass。 6. 採用類似 Jade 的標籤,但你仍可以使用 HTML 撰寫。 + +7. 更簡潔的設定檔!透過 YAML 配置你的模板(且免安裝 YAML 模塊)。 diff --git a/test/cache/views/home/ubuntu/workspace/test/default/tpls/test.phtml b/test/cache/views/home/ubuntu/workspace/test/default/tpls/test.phtml index b105d78..33169ee 100644 --- a/test/cache/views/home/ubuntu/workspace/test/default/tpls/test.phtml +++ b/test/cache/views/home/ubuntu/workspace/test/default/tpls/test.phtml @@ -1 +1 @@ -這是 HTML'?>
=htmlentities(isset($maybeHtml) ? $maybeHtml : '', \ENT_QUOTES, 'UTF-8')?>
=isset($maybeHtml) ? $maybeHtml : ''?>
>>這會是被轉義的字串: =htmlentities(isset($maybeHtml) ? $maybeHtml : '', \ENT_QUOTES, 'UTF-8')?>這會是 HTML: =isset($maybeHtml) ? $maybeHtml : ''?> \ No newline at end of file +吻仔魚,吻仔魚。
更多的吻仔魚。
=htmlentities(isset($a) ? $a : '', \ENT_QUOTES, 'UTF-8')?>
\ No newline at end of file diff --git a/test/default/tpls/test.jade b/test/default/tpls/test.jade index a8a92a6..4393ee9 100644 --- a/test/default/tpls/test.jade +++ b/test/default/tpls/test.jade @@ -1,16 +1,17 @@ + +p 吻仔魚,吻仔魚。 -$maybeHtml= '這是一串文字而且 這是 HTML' +- $i = 100 -p= $maybeHtml -p!= $maybeHtml +p 更多的吻仔魚。 +- + $i = [ + 'a', + 'b', + 'c' + ] -a(title=$maybeHtml) -a(title!=$maybeHtml) - - -p -| 這會是被轉義的字串: #{$maybeHtml} -p -| 這會是 HTML: !{$maybeHtml} \ No newline at end of file +each $a in $i + p= $a \ No newline at end of file