Exactly.
Section 7 of
https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html
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
On 8/18/17, Cyril Ferlicot <[email protected]> wrote:
> On ven. 18 août 2017 at 21:43, H. Hirzel <[email protected]> wrote:
>
>> Thank you Cyril for the link to the tutorial.
>>
>>
>> https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html
>>
>> I see that Pillar is a command line tool. The welcome example taken
>> from this tutorial is:
>>
>> Pharo.exe Pillar.image pillar export --to=html
>> --outputFile=welcome welcome.pillar
>>
>> How can I run a command like this from within Pharo in a "playground"
>> (former workspace)?
>>
>> Later on I plan to construct a simple GUI with text boxes for Pillar
>> sources and have some buttons executing these commands.
>>
>> --Hannes
>>
>>
>
> I remember writing a part "Pillar from Pharo" in this doc. I'm not sure it
> is still up to date but you can try to check part 7 of the doc I sent.
> --
> Cyril Ferlicot
> https://ferlicot.fr
>
> http://www.synectique.eu
> 2 rue Jacques Prévert 01,
> 59650 Villeneuve d'ascq France
>