Comments (8)
I fucked up the docs app.route('/').files(PUBLIC)
should be app.route('/*').files(PUBLIC)
from tako.
i'll work on adding a notfound API, i'll need one pretty soon.
from tako.
thanks for the super fast response :)
from tako.
Also, super minor, but it would be great if tako.version
returned the version number from the package.json.
Like this:
module.exports = function (options) {
return new Application(options)
}
+module.exports.version = require('./package.json').version
exports.globalMiddles = {}
If it's easier, I can send a pull request.
from tako.
That will only work on 0.6+. readFileSync
and JSON.parse
work in 0.4+
from tako.
@mikeal Note that in order to get the index.html file to serve from '/'
, I had to add this:
+app.route('/').file(PUBLIC)
app.route('/*').files(PUBLIC)
from tako.
@DTrejo that's a bug, we should fix that.
@dscape tako should only be expected to work on 0.6.
from tako.
Also would be cool to link to a "built with tako" wiki page from the readme.
Check out the code for the tako app I have "in production"
http://downsound.jit.su — https://github.com/DTrejo/down-sound/blob/master/server.js
Note: some of it is a bit repetitive b/c of open issues, but try to ignore it :)
from tako.
Related Issues (13)
- resp.redirect method
- .DS_Store in the templates folder causes stupid error HOT 2
- make templates dir accept a regex
- app.route("...").form() method
- session token cookies HOT 2
- middleware: Replace .onWrite method with the ability to return a different writable stream HOT 5
- npm version > git version
- Handlebars.registerHelper support
- tako crashes when a put or post request has no content-type header
- maple 0.3.0 breaks .files HOT 1
- Action required: Greenkeeper could not be activated 🚨
- Action required: Greenkeeper could not be activated 🚨
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tako.