talk-msg-dsl
v1.2.1
Published
Message DSL reader/writer of Jianliao.com
Downloads
6
Readme
Message DSL reader/writer of Jianliao.com
Usage
msgDsl = require 'msg-dsl'
msgBody = '<$mark|model|view$>'
result = msgDsl.read msgBody
msgDsl.write result
Methods:
read :: (string) -> array
read DSL array from stringwrite :: (array) -> string
write string from DSL arraywriteHtml :: (array) -> string
write HTML string from DSL arrayrecognize :: (string, string, array) -> array
get DSL array from message textflattern :: (array, array) -> string
generate message text from DSL arrayupdate :: (array, array) -> array
update information in DSL array
License
Closed