smfoote / tornado

HTML templates with asynchronous rendering, built with JavaScript.
http://smfoote.github.io/tornado/
Apache License 2.0
8 stars 3 forks source link

Add `td.assert` to check param validity (and other stuff like that) #106

Closed smfoote closed 9 years ago

smfoote commented 9 years ago

Instead of having a bunch of logic in the function code to check that a param exists and is of the right type, handle that logic in td.assert, that throws errors with useful descriptions when something is not right.