Hi, there is two possible ways I can think about: 1) return that variable in before_ function, so it will be available as _before.var in templates 2) put it into session at some point and it will be available as _session.var
On Fri, Sep 5, 2014 at 5:32 PM, Evgeny M <[email protected]> wrote: > Hi, > I need to add the same variable (same name and value) to every {ok, > [..variableslist..]} response of every method of a controller. In other > words, postprocess the response before template got rendered and push a new > variable into parameters list. > Is there an easy and nice way to do so? There are quite a few methods, > don't want do change them all. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/67924393-3ef5-43b5-93f5-d4469c108fd9%40googlegroups.com > <https://groups.google.com/d/msgid/chicagoboss/67924393-3ef5-43b5-93f5-d4469c108fd9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAF9GSxZq7dYbeyethJd%3Dq8jxer_j4ZVVz0tVJrhs-nF%2BEg38UQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
