File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,18 +105,18 @@ end
105105
106106--- Helper method ContentFor
107107--- @param tag string name of the content
108- --- @param fn function the function to be executed
108+ --- @param block function the function to be executed
109109--- @return nil
110110function ContentFor (tag , block )
111- Blocks [tag ] = Blocks [tag ] or {}
112- table.insert (Blocks [tag ], block ())
111+ Blocks [tag ] = Blocks [tag ] or {}
112+ table.insert (Blocks [tag ], block ())
113113end
114114
115115--- Helper method YieldContent
116116--- @param tag string name of the content
117117--- @return string content
118118function YieldContent (tag )
119- return table.concat (Blocks [tag ], " \n " )
119+ return table.concat (Blocks [tag ] or {} , " \n " )
120120end
121121
122122local function assignRoute (method , name , options , value )
You can’t perform that action at this time.
0 commit comments