
#m4_define(MMSS_getvalue, [q[m4_esyscmd(clipcode -r $REALTARGET $1)]q])m4_dnl#
#m4_define(MMSS_getquotvalue, [q[m4_esyscmd(echo -n [[q[]q]q[[[q[]q]q[;clipcode -r $REALTARGET $1; echo -n ]q[q[]q]]]q[q[]q]])]q])m4_dnl#my brain hurts
# This layout file is being interpreted by "testhandler.m4".
# The layout file is called:
testcf.cfg
#to reiterate, the handler is
testhandler.m4
# MMSS_getvalue(key) gets the value stored for key.
# the "somethinguseful" key for this layout file is:
#m4_esyscmd(clipcode -r $REALTARGET somethinguseful)
randomvalue
# the "prettycolour" key for this layout file is:
#m4_esyscmd(clipcode -r $REALTARGET prettycolour)
#AADDFF
# that'll do for now!
#Oh, not quite.
#old blocklist code


#new liststring code
#Getting definition...

#prettycolour quoted
[q[#AADDFF]q]
#blocklist
[q[^{3^}^{blockid^,Title^,Navtext^}^{id2^,Another Title^,Navother^}]q]

#getlistfield(0,0)
#MMSS_getvalue(blocklist) gives:
^{3^}^{blockid^,Title^,Navtext^}^{id2^,Another Title^,Navother^}
#Now, lets get items from the blocklist! Before using MMSS_getlistfield,
#must have called MMSS_setliststring(key) to extract relevant key into m4 var

#getting definition of MMSS_liststring

First block: ID is blockid Title is Title  Anchor text is Navtext

Second block: ID is id2 Title is Another Title Anchor text is Navother
#done
