Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added README and LICENSE.

  • Loading branch information...
commit 12800a76f7621e237b58cb21c2bd58f5d5fc9988 1 parent 9e15db5
@akrennmair authored
Showing with 44 additions and 0 deletions.
  1. +19 −0 LICENSE
  2. +25 −0 README.md
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2012 Andreas Krennmair <ak@synflood.at>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
25 README.md
@@ -0,0 +1,25 @@
+# README for hashroute.dart
+
+hashroute.dart is a simple location hash router for Dart. Using it is simple:
+you create a new HashRouter object, and which the `addHandler()` resp.
+`addHandlerFunc()` methods, you can add handlers for routes. Routes are
+specified in a Sinatra-like style.
+
+With the `goTo()` method, you can set the location hash, which will then trigger
+the corresponding handler (if any of your routes matches).
+
+And with the `run()` method, you can call the location hash that is currently
+set. You will need this if you want to create single-page apps with
+copy-paste-able URLs where the location hash references data or a specific
+action that shall be executed.
+
+Currently, the best documentation is the example and hashroute.dart itself.
+The code is simple, so it should be reasonably easy to understand.
+
+## License
+
+See the file LICENSE for details.
+
+## Author
+
+Andreas Krennmair <ak@synflood.at>
Please sign in to comment.
Something went wrong with that request. Please try again.