Skip to content
Myr

Started ejs template support for express(1)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 704e9c1 · Browse files · 1 file+39 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+39 added−13 removed

  • other:+39 added−13 removed

1 file+39 added−13 removed

modified:bin/express+39 added-13 removed
51 unmodified lines
5253var jadeLayout = [54 '!!!'55 , 'html'56 , ' head'57 , ' title= title'58 , ' link(rel=\'stylesheet\', href=\'/stylesheets/style.css\')'59 , ' body!= body'56 , ' head'57 , ' title= title'58 , ' link(rel=\'stylesheet\', href=\'/stylesheets/style.css\')'59 , ' body!= body'60].join('\n');6162/**63 * Jade index template.64 */6566var jadeIndex = [67 'h1= title'68 , 'p Welcome to #{title}'69].join('\n');7071/**72 * EJS layout template.73 */7475var ejsLayout = [76 '<!DOCTYPE html>'77 , '<html>'78 , ' <head>'79 , ' <title><%= title %></title>'80 , ' <link rel=\'stylesheet\' href=\'/stylesheets/style.css\' />'81 , ' </head>'82 , ' <body>'83 , ' <%- body %>'84 , ' </body>'85 , '</html>'86].join('\n');8788/**89 * EJS index template.90 */9192var ejsIndex = [93 '<h1><%= title %></h1>'94 , '<p>Welcome to <%= title %></p>'95].join('\n');9697/**98 * Default css template.99 */100101var css = [
24 unmodified lines
126 , ' :font 14px "Lucida Grande", Helvetica, Arial, sans-serif'127].join('\n');128129/**95 * Jade index template.96 */9798var jadeIndex = [99 'h1= title'100 , 'p Welcome to #{title}'101].join('\n');102103/**130 * App test template.131 */132133var appTest = [
268 unmodified lines