Skip to content
Myr

examples: replace jade with ejs in view-locals

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

closes #3240

authored by Jamie Barton · committed by Douglas Christopher Wilson · parent 64dd446 · Browse files · 4 files+25 added−25 removed
This commit

State

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

Diff stats

4 files+25 added−25 removed

  • other:+25 added−25 removed

4 files+25 added−25 removed

added:examples/view-locals/views/index.ejs+19 added
1<!DOCTYPE html>2<html>3 <head>4 <meta charset="utf-8">5 <title><%= title %></title>6 <style media="screen">7 body {8 padding: 50px;9 font: 16px Helvetica, Arial;10 }11 </style>12 </head>13 <body>14 <h2><%= title %></h2>15 <% users.forEach(function(user) { %>16 <li><strong><%= user.name %></strong> is a <% user.age %> year old <%= user.species %></li>17 <% }); %>18 </body>19</html>
modified:examples/view-locals/index.js+6 added-5 removed
deleted:examples/view-locals/layout.jade-12 removed
1doctype html2html3 head4 title= title5 style.6 body {7 padding: 50px;8 font: 16px Helvetica, Arial;9 }10 body11 h2= title12 block content
deleted:examples/view-locals/user.jade-8 removed
12extends layout34block content5 for user in users6 .user7 h3= user.name8 p #{user.name} is a #{user.age} year old #{user.species}.