README
Message DSL reader/writer of Jianliao.com
Usage
msgDsl = require 'msg-dsl'
msgBody = '<$mark|model|view
Message DSL reader/writer of Jianliao.com ----
<script type="module">
import talkMsgDsl from 'https://cdn.skypack.dev/talk-msg-dsl';
</script>
msgDsl = require 'msg-dsl'
msgBody = '<$mark|model|view
gt;' 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 arrayClosed