module URITemplate

Defined in:

uri_template.cr
uri_template/template.cr
uri_template/variable.cr

Constructors

Class Method Summary

Constructor Detail

def self.new(uri : String) #

Factory method, returns a Template


[View source]

Class Method Detail

def self.expand(uri : String, *args, **kwargs) #

Create a Template and expand it using either a Hash of arguments, or keyword-arguments or both. Returns a String.


[View source]
def self.expand_partial(uri : String, *args, **kwargs) #

Create a Template and expand it partially using either a Hash of arguments, or keyword-arguments or both. Returns a partially expanded Template.


[View source]
def self.variables(uri : String) #

Create a Template and return the variable names from it.


[View source]