How to pass a variable to a layout?

前端 未结 5 2065
时光说笑
时光说笑 2021-02-05 14:27

I have a two versions of my application layout, which are differs only in a few lines. Consider following example:

!!!    
%html
    %head
        # a lot of cod         


        
5条回答
  •  醉梦人生
    2021-02-05 15:16

    A controller instance variable? That's the normal way to get information to the template.

提交回复
热议问题