in reply to Re: Dancer param rewrite
in thread Dancer param rewrite

Sorry, but no. I read the description as normalization of the parameter names. So whether someone supplied "NAME=John" or "name=John" to the path, the result will be that the parameter name becomes "name" when "lowercase is set as normalization.


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^3: Dancer param rewrite
by kschwab (Vicar) on Jan 24, 2014 at 11:14 UTC
    Yes, that is the example, but read a bit further on the part about the custom class...
    normalize($hashref) Receives a hashref that contains the parameters keys/value. It should +return a hashref (it can be the same), containing modified parameters +.
    Sounds like you can modify values as well, since you're returning a hashref with both keys and values.

      Okay... It was not that obvious, but you're right. It seems like it could be useful for my purpouse.

      Will check. Thank you.


      s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
      +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e