class Middleman::Util::BlogTemplateProcessor
See github.com/sporkmonger/addressable/blob/master/lib/addressable/template.rb#L279<br><br>and has an extra-permissive default regex.
A special template processor that validates date fields
def self.match(name)
def self.match(name) case name when 'year' then '\d{4}' when 'month' then '\d{2}' when 'day' then '\d{2}' else '.*?' end end