From f77b9ab326a583fe82d242e7e5f8f81b20f6ac71 Mon Sep 17 00:00:00 2001 From: Yami Odymel Date: Mon, 20 Jun 2016 11:54:42 +0000 Subject: [PATCH] Added: We are using YAML! --- README.md | 2 ++ .../workspace/test/default/tpls/test.phtml | 2 +- test/default/tpls/test.jade | 23 ++++++++++--------- 3 files changed, 15 insertions(+), 12 deletions(-) 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'?>

>>

這會是被轉義的字串:

這會是 HTML: \ No newline at end of file +

吻仔魚,吻仔魚。

更多的吻仔魚。

\ 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