Re: [Pharo-users] Standalone HTML Model

2017-09-19 Thread Sean P. DeNigris
Craig Latta wrote > Oh, it wasn't clear to me that this was one of Sean's requirements. I would say "sorry" but I'm glad I wasn't clear because I learned something cool from your reply ;) - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Standalone HTML Model

2017-09-18 Thread Craig Latta
Hi Norbert-- > > In Pharo on the SqueakJS virtual machine in a web browser[1], I > > sketch with live DOM objects, and write them out as HTML. This way, > > the DSL is the actual JavaScript DOM API which is sitting in the web > > browser anyway, although driven with Smalltalk messages over the

Re: [Pharo-users] Standalone HTML Model

2017-09-18 Thread Norbert Hartl
> Am 18.09.2017 um 09:03 schrieb Craig Latta : > > > Hi Sean-- > >> I'd like to create HTML via a DSL, like Seaside's canvas builder, but >> without loading a whole web framework. Any ideas? > > In Pharo on the SqueakJS virtual machine in a web browser[1], I >

Re: [Pharo-users] Standalone HTML Model

2017-09-18 Thread Craig Latta
Hi Sean-- > I'd like to create HTML via a DSL, like Seaside's canvas builder, but > without loading a whole web framework. Any ideas? In Pharo on the SqueakJS virtual machine in a web browser[1], I sketch with live DOM objects, and write them out as HTML. This way, the DSL is the actual

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Sean P. DeNigris
NorbertHartl wrote > There could be a lot of synergies here because web frameworks, pillar, > PharoJS are all working close to something like that. I first thought along these lines when using Amber. I was writing Bootstrap support and saw that it was already available for Seaside and thought,

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Stephane Ducasse
Ok I will try to digest it :) I do not remember how this is done in Pillar but this is a visitor and it could call a streaming generator. Stef On Sun, Sep 17, 2017 at 2:10 PM, Norbert Hartl wrote: > > >> Am 17.09.2017 um 13:34 schrieb Stephane Ducasse

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Norbert Hartl
> Am 17.09.2017 um 13:34 schrieb Stephane Ducasse : > > Norbert can you explain the difference between "a HTML model that can > be used for streaming, too, instead just the streaming." > because indeed in Pillar we have another HTML exporter and I would > like to reuse

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Stephane Ducasse
Norbert can you explain the difference between "a HTML model that can be used for streaming, too, instead just the streaming." because indeed in Pillar we have another HTML exporter and I would like to reuse :) On Sun, Sep 17, 2017 at 1:29 PM, Norbert Hartl wrote: > > >> Am

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Norbert Hartl
> Am 17.09.2017 um 12:12 schrieb Pierce Ng : > >> On Mon, Sep 11, 2017 at 06:25:55PM +0200, Stephane Ducasse wrote: >> Hi Pierce Ng >> How different is the API from Seaside? >> Because I would like to use it. >> I like to think modularly :) > > Hi Stef, > > I modeled it

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Pierce Ng
On Mon, Sep 11, 2017 at 10:14:54AM -0300, Esteban A. Maringolo wrote: > I don't know how modular it is, but maybe loading only the 'Seaside-Canvas' > package you can use the WAHtmlCanvas to create the HTML content. I also experimented with loading enough of Seaside in bits and pieces to get the

Re: [Pharo-users] Standalone HTML Model

2017-09-17 Thread Pierce Ng
On Mon, Sep 11, 2017 at 06:25:55PM +0200, Stephane Ducasse wrote: > Hi Pierce Ng > How different is the API from Seaside? > Because I would like to use it. > I like to think modularly :) Hi Stef, I modeled it after Seaside's API. However, it was really just a start and needs much more work. I

Re: [Pharo-users] Standalone HTML Model

2017-09-11 Thread Herby Vojčík
Stephane Ducasse wrote: Hi Pierce Ng How different is the API from Seaside? Because I would like to use it. I like to think modularly :) Stef Maybe porting Silk and let it write to some simulated DOM could be interesting as well... :-) https://lolg.it/herby/silk Herby On Mon, Sep 11,

Re: [Pharo-users] Standalone HTML Model

2017-09-11 Thread H. Hirzel
Interestingly the Seaside team has realized this as well https://github.com/SeasideSt/Seaside/issues/976 On 9/11/17, Stephane Ducasse wrote: > Hi Pierce Ng > > How different is the API from Seaside? > Because I would like to use it. > I like to think modularly :) >

Re: [Pharo-users] Standalone HTML Model

2017-09-11 Thread Stephane Ducasse
Hi Pierce Ng How different is the API from Seaside? Because I would like to use it. I like to think modularly :) Stef On Mon, Sep 11, 2017 at 12:31 PM, Pierce Ng wrote: > On Fri, Sep 08, 2017 at 03:15:56PM -0700, Sean P. DeNigris wrote: >> I'd like to create HTML via a

Re: [Pharo-users] Standalone HTML Model

2017-09-11 Thread Esteban A. Maringolo
I don't know how modular it is, but maybe loading only the 'Seaside-Canvas' package you can use the WAHtmlCanvas to create the HTML content. I used it together with Mandrill client by creating the mail body with the result of `WAHtmlCanvas builder render: [ :html | ... ]`. HTH. Regards,

Re: [Pharo-users] Standalone HTML Model

2017-09-11 Thread Pierce Ng
On Fri, Sep 08, 2017 at 03:15:56PM -0700, Sean P. DeNigris wrote: > I'd like to create HTML via a DSL, like Seaside's canvas builder, but without > loading a whole web framework. Any ideas? I wrote this but subsequently decided that loading the whole of Seaside into my image just for this

Re: [Pharo-users] Standalone HTML Model

2017-09-09 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > not really a DSL I disagree ;) It looks perfect! - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Standalone HTML Model

2017-09-09 Thread Sean P. DeNigris
Hannes Hirzel wrote > the question is of course - is it the HTML only model you are > interested in or is it rather a 'web document model' Thanks for the detailed replies! Yes, you are right. I should've given more info about my use case. I had some HTML that I was using for an email signature

Re: [Pharo-users] Standalone HTML Model

2017-09-09 Thread H. Hirzel
Sean, the question is of course - is it the HTML only model you are interested in or is it rather a 'web document model' (i.e. something which is displayed in a browser) thus including HTML and CSS. --HH. On 9/9/17, H. Hirzel wrote: > On 9/9/17, Sean P. DeNigris

Re: [Pharo-users] Standalone HTML Model

2017-09-09 Thread H. Hirzel
On 9/9/17, Sean P. DeNigris wrote: > I'd like to create HTML via a DSL, like Seaside's canvas builder, but > without > loading a whole web framework. Any ideas? > Hello Sean 1. One idea is _not_ to go for a HTML builder DSL but for a document model plus a generator. The

Re: [Pharo-users] Standalone HTML Model

2017-09-09 Thread Stephane Ducasse
Hi sean I want the same :). Now I have to finish my lectures for within two weeks and I should not read this mailing-list :) I do not remember what we did in Pillar. Now if you extract the canvas/builder from Seaside and rename it to avoid conflict I'm all ears. Stef On Sat, Sep 9, 2017 at

Re: [Pharo-users] Standalone HTML Model

2017-09-09 Thread Sven Van Caekenberghe
There is ZnHtmlOutputStream, not really a DSL, but it might help. > On 9 Sep 2017, at 00:15, Sean P. DeNigris wrote: > > I'd like to create HTML via a DSL, like Seaside's canvas builder, but without > loading a whole web framework. Any ideas? > > > > - > Cheers, >

[Pharo-users] Standalone HTML Model

2017-09-08 Thread Sean P. DeNigris
I'd like to create HTML via a DSL, like Seaside's canvas builder, but without loading a whole web framework. Any ideas? - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html