Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am odogono on github.
  • I am alxv (https://keybase.io/alxv) on keybase.
  • I have a public key whose fingerprint is 2DBC 8BDF 5097 6564 44EA 9689 5B41 959C 0AB3 4643

To claim this, I am signing this object:

@odogono
odogono / express.mustache.js
Created October 1, 2012 08:59
hacking mustache partial support into express
var app = module.parent.exports;
var path = require('path');
var fs = require('fs');
var Mustache = require( path.join( Common.paths.jslib, 'mustache' ) );
// result of - app.set('partials', Common.path.join(__dirname,'templates') );
var partialsPath = app.settings.partials;
app.set('view engine', 'mustache');
localhost:
itinerary:
time : 1.56
mem : 88272
peak : 7542536
get_itinerary-weight_engine:
time : 0.49
mem : 205800
peak : 0
get_itinerary-get_active_weight_data:
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:n2n="http://now2now.com/n/2011">
<title>Visit London</title>
<id>urn:uuid:5cd22f40-3ff9-11e0-94c7-0002a5d5c51b</id>
<updated>2011-02-24T09:40:00Z</updated>
<author>
<name>alexander veenendaal</name>
</author>
<entry>
<id>urn:uuid:37aff880-e14e-ffdd-12d9-9a4332a6260e</id>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" />
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
<title>Search Input Issue</title>
</head>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:vlm="http://api.visitlondon.com">
<title>Visit London</title>
<link href="/pages/home" rel="self" />
<id>tag:m.visitlondon.com,2011-01-18:/pages/home/20110118121025739</id>
<updated>2011-01-18T12:16:00Z</updated>