Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switched to the EJS template engine.

  • Loading branch information...
commit 614b10aa7cbd43c8aa3792dad2f7414fd641e3f9 1 parent 334a5d9
@akoenig authored
Showing with 3 additions and 20 deletions.
  1. +3 −3 example/app.js
  2. +0 −17 example/views/index.html
View
6 example/app.js
@@ -13,7 +13,7 @@
*/
var express = require('express')
- //, lingua = require('../lib/lingua')
+ , lingua = require('../lib/lingua')
, http = require('http');
var app = express();
@@ -27,10 +27,10 @@ app.configure(function () {
app.set('view engine', 'ejs');
// Lingua configuration
- /*app.use(lingua(app, {
+ app.use(lingua(app, {
defaultLocale: 'de-de',
path: __dirname + '/i18n'
- }));*/
+ }));
app.use(express.favicon());
app.use(express.logger('dev'));
View
17 example/views/index.html
@@ -1,17 +0,0 @@
-<nav>
- <ul>
- <li><a href="?language=de-de"><%= lingua.navigation.german %></a></li>
- <li><a href="?language=en"><%= lingua.navigation.english %></a></li>
- </ul>
-</nav>
-
-<article>
- <header>
- <hgroup>
- <h1><%= lingua.index.headline %></h1>
- <h2><%= lingua.index.subheadline %></h2>
- </hgroup>
- </header>
-
- <p><%= linguac(lingua.index.person, person) %></p>
-</article>
Please sign in to comment.
Something went wrong with that request. Please try again.