WIP: further refinement

This commit is contained in:
2025-06-16 20:18:05 -07:00
parent d495203aab
commit 2b712539fc
2 changed files with 5 additions and 8 deletions

View File

@@ -136,14 +136,9 @@ list3 = (args={}, has_block) =>
title = title or titleize_slug id
url = rootname page\url_for!
vals = { title: title, publish_date: pub_date, blurb: blurb, url: url }
if has_block then cosmo.yield vals else common.fill_ignoring_pre template, vals
if has_block
cosmo.yield vals
nil
else
common.fill_ignoring_pre template, vals
unless has_block then return result
return result unless has_block
-- use in templates
-- $list2{[[<p>$title</p>]], limit = 2}