Skip to content

Instantly share code, notes, and snippets.

View joewalnes's full-sized avatar

Joe Walnes joewalnes

View GitHub Profile
@joewalnes
joewalnes / gist:833611
Created February 18, 2011 12:36
Connect and HTTPS
== In earlier versions of Node, HTTPS with Connect was easy ==
var server = connect.createServer(middleware1, middleware2,...);
server.setSecure(crypto.createCredentials({
key: myHttpsKey,
cert: myHttpsCert
}));
server.listen(port);
<sitemesh>
<!-- There can be multiple <mapping> elements -->
<!-- Apply decorator to all paths by default, unless another matches -->
<mapping decorator="/default-decorator.html"/>
<!-- More mappings, with paths. -->
<mapping path="/path1/*" decorator="/another-decorator.html"/>
<mapping path="/path1/*" decorator="/another-decorator.html"/>
1. Basic usage:
<sitemesh srcdir="src"
config="myconfig.xml"
destdir="dest"
includes="*.html"/>
2. Includes/excludes:
<sitemesh srcdir="src"
config="myconfig.xml"
destdir="dest"