-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #80. Add HTML Embedded Ruby (ERB) support.
- Loading branch information
Showing
5 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<title>Shopping List for <%= @date.strftime('%A, %d %B %Y') %></title> | ||
</head> | ||
<body> | ||
<h1>Shopping List for <%= @date.strftime('%A, %d %B %Y') %></h1> | ||
<p>You need to buy:</p> | ||
<ul> | ||
<% for @item in @items %> | ||
<li><%= h(@item) %></li> | ||
<% end %> | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### | ||
Requires https://github.com/hhatto/autopep8 | ||
### | ||
"use strict" | ||
cliBeautify = require("./cli-beautify") | ||
getCmd = (inputPath, outputPath, options) -> | ||
# Use command available in $PATH | ||
"htmlbeautifier < \"" + inputPath + "\" > \"" + outputPath + "\"" | ||
module.exports = cliBeautify(getCmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,8 @@ | |
"java", | ||
"pawn", | ||
"vala", | ||
"d" | ||
"d", | ||
"erb" | ||
], | ||
"engines": { | ||
"atom": ">0.50.0" | ||
|