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]
|
||||
|
||||
test = (args, has_block) =>
|
||||
p args
|
||||
p has_block
|
||||
-- if has_block then cosmo.yield {limit: args[1]} else args[1]
|
||||
args._template = 2
|
||||
cosmo.yield(args)
|
||||
if has_block
|
||||
cosmo.yield(name: "yupyup")
|
||||
nil
|
||||
else
|
||||
common.fill_ignoring_pre [[passed in template $blove]], {blove: "haha"}
|
||||
-- args._template = 2
|
||||
-- cosmo.yield(args)
|
||||
-- html = @site\get_renderer "sitegen.renderers.html"
|
||||
-- page\merge_meta vals
|
||||
-- page.tpl_scope = page.meta
|
||||
-- page.template_stack = common.Stack!
|
||||
-- html\render page, assert args[1] or template, "missing html string"
|
||||
nil
|
||||
|
||||
-- use in templates
|
||||
-- $list2{[[<p>$title</p>]], limit = 2}
|
||||
|
Loading…
x
Reference in New Issue
Block a user