paulkinlan / leviroutes Goto Github PK
View Code? Open in Web Editor NEWA basic routes framework for JS that hooks in to HTML5 history
License: Apache License 2.0
A basic routes framework for JS that hooks in to HTML5 history
License: Apache License 2.0
Nginx, Windows 7, Mozilla Firefox 10
Full useragent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
SpecRunner.html: 9 specs, 3 failures
should parse / and add endmarker Expected '\/$' to equal '/$'. should parse basic route and leave untouched Expected '\/category$' to equal '/category$'. should parse basic named identifier in position 0 Expected '\/([^\/.\\]+)$' to equal '/([^/.\\]+)$'.
In google chrome: 9 specs, 0 failures
There is a need to unify the HTML5 History API and fragment URI's.
We need to work out a way that we can have use both - it might be that the path URL is /#somepath/somefile.html when history isn't supported.
onpopstate is only fired when you navigate forwards or backwards - we need to be alerted to when pushState is called so that we can match changes against logic.
It would be cool to be able to handle POST events from forms.
Implement a Node JS framework so that the same routing logic can be used on the server and the client.
When intercepting form POST events the params object does not have any arguments - make it so that the developer can inspect "params" to get the values of objects.
line 56 causes the script to fail and the get-example to break. Please change line 56 to be:
if(e && e.target instanceof HTMLFormElement) {
Thanks,
Brian
is there any middle support before you get the req ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.