Omg
This commit is contained in:
parent
ef47f48002
commit
fd6e3411ff
13
site.moon
13
site.moon
@ -113,17 +113,18 @@ files_from = (path=".") ->
|
|||||||
[Path.join path, file for file in *reverse get_files path]
|
[Path.join path, file for file in *reverse get_files path]
|
||||||
|
|
||||||
test = (args, has_block) =>
|
test = (args, has_block) =>
|
||||||
p args
|
if has_block
|
||||||
p has_block
|
cosmo.yield(name: "yupyup")
|
||||||
-- if has_block then cosmo.yield {limit: args[1]} else args[1]
|
nil
|
||||||
args._template = 2
|
else
|
||||||
cosmo.yield(args)
|
common.fill_ignoring_pre [[passed in template $blove]], {blove: "haha"}
|
||||||
|
-- args._template = 2
|
||||||
|
-- cosmo.yield(args)
|
||||||
-- html = @site\get_renderer "sitegen.renderers.html"
|
-- html = @site\get_renderer "sitegen.renderers.html"
|
||||||
-- page\merge_meta vals
|
-- page\merge_meta vals
|
||||||
-- page.tpl_scope = page.meta
|
-- page.tpl_scope = page.meta
|
||||||
-- page.template_stack = common.Stack!
|
-- page.template_stack = common.Stack!
|
||||||
-- html\render page, assert args[1] or template, "missing html string"
|
-- html\render page, assert args[1] or template, "missing html string"
|
||||||
nil
|
|
||||||
|
|
||||||
-- use in templates
|
-- use in templates
|
||||||
-- $list2{[[<p>$title</p>]], limit = 2}
|
-- $list2{[[<p>$title</p>]], limit = 2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user