Skip to content

Instantly share code, notes, and snippets.

@EragonJ
Created January 28, 2010 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EragonJ/288830 to your computer and use it in GitHub Desktop.
Save EragonJ/288830 to your computer and use it in GitHub Desktop.
document = <<-"# # #" # 下面這個是不是有種「樣版引擎」的感覺??可以很直覺的把HTML抽出來
<html><head><title>#{title}</title></head>
<body>
<h1>#{title}</h1>
#{body}
</body>
</html>
# # #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment