1.2.1 • Published 10 years ago
talk-msg-dsl v1.2.1
Message DSL reader/writer of Jianliao.com
Usage
msgDsl = require 'msg-dsl'
msgBody = '<$mark|model|view$>'
result = msgDsl.read msgBody
msgDsl.write resultMethods:
read :: (string) -> arrayread DSL array from stringwrite :: (array) -> stringwrite string from DSL arraywriteHtml :: (array) -> stringwrite HTML string from DSL arrayrecognize :: (string, string, array) -> arrayget DSL array from message textflattern :: (array, array) -> stringgenerate message text from DSL arrayupdate :: (array, array) -> arrayupdate information in DSL array
License
Closed