> Am 24.08.2017 um 22:34 schrieb Stephane Ducasse <[email protected]>: > > In Pharo 60 (and not in Pharo 50) I extracted the command line logic > into a specific object so that we do not have to be bound to use the > command line. You can have a look in the CLI package. > > This is good that there is Section 7 this in the doc. We started to > build a simple Morphic renderer for Pillar. > We should continue. If someone wants to have fun. This would be nice > to have see it coming to live. > A morphic renderer? Wouldn't it be fun to do one for bloc? I think we should slowly collect some tools that use bloc in order to get the tension making it the "default" thingie.
> On my todo: I also want to use mustache inside Pharo and not > generating files on the disk. > That should be doable by deleting some code. Norbert > Stef > > On Fri, Aug 18, 2017 at 10:08 PM, H. Hirzel <[email protected]> wrote: >> 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 >>> >>
