Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $user_rs = model('Schema::User');
- %ctx->stash(
- title => 'My Title',
- users => sub {
- my ($root, $matched_node) = @_;
- $matched_node->append(
- $root->li(
- $root->a({href=>$action->uri($id...)
- );
- },
- );
- <html>
- <head>
- <title>Test</title>
- </head><body>
- <h1 id="page-title"></h1>
- <div>
- <ul id='users[id,name]'>
- <li><a id=".id" href=".url">User</a></li>
- </ul>
- <span id='!users'>no users!!</span>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment