Sha256: 1eeea4a428aac24ccf39673e04df756c3f2776f520e05f355cebdead9ed0df7a

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

<?xml version="1.0"?>

<!-- the <?xml declaration is optional, but lets be strict. -->

<p>

<?r
	# methods:
	P::Articles.add_comment(request)
	P::Articles.del_comment(request)

	parent = request[:comments_parent]
	comments = $db.children(parent, N::Comment)
?>

<?r if comments ?>
<ul>
<?r for comment in comments ?>
	<li>
		<b>#{N::TimeUtils.date_time(comment.create_time)}:</b> #{comment.body}
		[<a href="@?del_comment_oid=#{comment.oid}">del</a>]
	</li>
<?r end ?>
</ul>
<?r end ?>

<!-- include at compile time (static include) -->
<?include xl:href="comments-form.ss" ?>

</p>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.1.2 examples/simple/root/comments.si
nitro-0.2.0 examples/simple/root/comments.si