Skip to content

Instantly share code, notes, and snippets.

@jrunning
Created June 8, 2010 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrunning/429523 to your computer and use it in GitHub Desktop.
Save jrunning/429523 to your computer and use it in GitHub Desktop.
//=== hello.js ===
var kiwi = require('kiwi'),
sys = require('sys');
kiwi.require('express');
configure(function(){
set('root', __dirname)
});
get('/', function() {
this.render("index.html.haml");
});
run();
/*
=== layout.html.haml ===
%html
%head
%title= "Hello"
%body= body
=== index.html.haml ===
%p
Hello
%br
World
=== OUTPUT ===
<html>
<head>
<title>Hello</title>
</head>
<body>
&lt;p&gt;Hello
&lt;br/&gt;World&lt;/p&gt;
</body>
</html>
============
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment