Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text 2 - ExpressJS snippet
<snippet>
<content><![CDATA[
var express = require('express'),
app = express();
app.get('/', function(req, res) {
res.sendfile(__dirname + '/client/views/index.html');
})
app.listen(${1:this}, function() {
console.log('I\'m listening... on port ${2:snippet}');
})
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>express</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.