If you are new to this as I am, it is not obvious how to proceed.
First you need both slim.r and liquid.r
Slim can be found at rebol.org in the scripts.
You can download liquid or retrieve it from the Rebol console by visiting Liquid
to either get the file or run the one-line script at the Rebol console.
Start by loading SLiM with
do %slim.rand then try
do %liquid.r
The important liquid function is liquify. An attempt at
source liquifyor
help liquifywill show that nothing is yet available.
Start by checking the SLiM paths with
slim/pathswhich should be an empty block.
I am using local code (liquid.r and slim.r are in my Rebol directory) so I just do this:
slim/paths: [%.]
Now I check my SLiM path to liquid this way:
slim/find-path %liquid.rwhich gives me my Rebol path.
Now I can do the two key bits:
lq: slim/open 'liquid none ; gets any versionand then expose that lq library with
slim/expose lq none ; replace none later with a blk of funcsNow you can test with a simple test for the liquify true? function with
source true?You are now ready to use the liquid documentation at Steel quickstart or the Steel Liquid page.
1 comment:
Now I can do the two key bits:
lq: slim/open 'liquid none ; gets any version
That first task is to make an assignment of a value to the identifier (word) 'lq
That is,
lq: slim/open 'liquid none
The space after the colon may not have been evident ...
Post a Comment