Category Archives: URI Templates

Implementations of URI Templates in various languages

Before the URI Templates implementation in C++/Xbyak, I researched implementations of URI Templates. Python (Joe Gregorio himself’s experimental implementation) http://code.google.com/p/uri-templates/ Ruby – Addressable http://addressable.rubyforge.org/ Ruby – uri-templates http://github.com/juretta/uri-templates/tree/master Javascript – url_template http://www.mnot.net/javascript/url_template/ Javascript – Template http://www.snellspace.com/wp/?p=831 Perl – URI::Template http://search.cpan.org/~bricas/URI-Template/Continue reading

Posted in URI Templates | Tagged | Leave a comment

JIT Compiler for URI Templates (C++/Xbyak)

URI Templates ( http://bitworking.org/projects/URI-Templates/ ) provides the methods to generate similar URIs. For example, a template “/weather/{state}/{city}?forecast={day}” means that it has 3 parameters “state”, “city” and “day”, therefore it can generate URI when giving values for each parameter. Is it … Continue reading

Posted in C++, URI Templates | Tagged , | 1 Comment