Thank you! the variant with session is exactly what I looked for, as the variable is stored in the session anyway.
суббота, 6 сентября 2014 г., 20:44:24 UTC+4 пользователь Dmitry Polyanovsky написал: > > 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] > <javascript:>> 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] <javascript:>. >> 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/606f4bed-64e4-40c8-a975-e95d9dbf019e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
