Fine, thank you, Stephane. I have Pillar now installed in 6.1. And a PetitParser version which supports YAML, but in a different 6.1 image. One issue is that I can have both in the same image - 1) Pillar loaded through the catalog 2) a good recent PetitParser version See also my email to Tudor Girba this morning --Hannes On 8/22/17, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Yes we need input (but most importantly time). I will allocate time because Pillar is important for me.
On Fri, Aug 18, 2017 at 10:18 PM, Cyril Ferlicot <cyril.ferlicot@gmail.com> wrote:
On ven. 18 août 2017 at 22:09, H. Hirzel <hannes.hirzel@gmail.com> wrote:
Exactly.
Section 7 of
https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfu...
has an example
| wiki | wiki := '!My Document'. PRPillarParser parse: wiki
Or
PRPillarParser parse: (FileSystem workingDirectory / 'foo.pillar') readStream
and then
PRHTMLWriter write: document
This put together gives
PRHTMLWriter write: ( PRPillarParser parse: (FileSystem workingDirectory / 'welcome.pillar') )
If I inspect the result of this expression I get the HTML string.
Thank you Cyril. This is what I was looking for.
--Hannes
Happy to see it still works :)
I know there was work on Pillar after I wrote this. Maybe there is some functionalities that will need more than those simple examples. By I am not sure and I know that Stephane want to simplify it further. -- Cyril Ferlicot https://ferlicot.fr
http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France