[Sputnik-list] "Messages" section

Jim Whitehead II jnwhiteh at gmail.com
Fri Mar 7 15:28:35 GMT+2 2008


The attached patch changes the sputnik core to allow for a style
content box called "messages".  In order for a node to add messages to
the standard wiki.show output, it simply uses the following syntax:

node.messages = node.messages or {}
table.insert(node.messages, "Some error/status message here")

This is then rendered and styled as part of the MAIN template.

As for implementation details, the messages table could be created in
the root prototype, but I more wanted to raise the idea than suggest a
specific implementation.  Is something like this reasonable and within
the scope of something you'd be okay with?

- Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Altered-sputnik-core-to-allow-for-an-array-node.mess.patch
Type: text/x-patch
Size: 4449 bytes
Desc: not available
Url : http://lists.luaforge.net/pipermail/sputnik-list/attachments/20080307/fde277d4/0001-Altered-sputnik-core-to-allow-for-an-array-node.mess.bin


More information about the Sputnik-list mailing list