text.rxml

来自「ruby on rails web敏捷开发之路第二版 源代码」· RXML 代码 · 共 52 行

RXML
52
字号
controller.headers["Content-Type"] = "text/plain"xml.dl do  @text = %{     E-Mail dave@pragprog.com, or visit     http://pragprog.com/contact for      phone numbers and other details.  }  show(xml, "auto_link(@text)")@trees = %{I think that I shall never seeA poem lovely as a tree.A tree whose hungry mouth is prestAgainst the sweet earth's flowing breast;}#'  show(xml, %{excerpt(@trees, "lovely", 8)})  show(xml, %{highlight(@trees, "tree")})  show(xml, %{truncate(@trees, 20)})  show(xml, %{simple_format(@trees)})@bluetext = %{Greetings=========Things to do:* wash cat* walk iguana* straighten worm}  show(xml, %{markdown(@bluetext)})  show(xml, %{pluralize(1, "person")})  show(xml, %{pluralize(2, "person")})  @linked_text = %{See <a href="http://pragprog.com">our site</a>.}show(xml, "strip_links(@linked_text)")@redtext = %{Things to do:* wash cat* walk iguana* straighten worm}  show(xml, %{textilize_without_paragraph(@redtext)})end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?