There have been some excellent suggestions in all of this - and I also came across HttpView2 as well.
I am a bit spoiled for choice it seems - so will start trying out a few and will report back.
We may also use this topic as a follow-on conversation from the UKST talk from Cincom about building web applications, if people have time afterwards.
Thanks again everyone.
Tim
On Tue, 29 Sep 2020, at 1:03 PM, Esteban Maringolo wrote:
Hi Jan,
Nice work, the "Eleven" framework goes in the direction of what I was experimenting with for Seaside, but instead of trying to introduce that in Seaside without breaking everything else (as I failed to some extent) you went directly to replace and redo most of the stuff there (some with simplifications).
It's nice to see that you have ideas like OneTimeCallback and a FormHandler in it, because I had something similar going on.
I didn't understand why you have a CSRF list of tokens in the Session.
Thinking of Seaside, I think this would be something nice to introduce in Seaside 4.0 :-)
Regards!
El mar., 29 de septiembre de 2020 05:38, Jan Blizničenko jan.bliznicenko@fit.cvut.cz escribió:
Hello,
I am using https://github.com/JanBliznicenko/eleven for one of my projects.
It is also a full framework, yet much simplier than Seaside and stateless
and I believe only the HTML building functionality can be used indpendently.
Example:
htmlObject := HtmlBody
with:
(HtmlDiv
class: 'content'
with:
(HtmlAnchor new
href: 'https://pharo.org';
targetBlank;
with: 'Pharo website';
yourself)).
String streamContents: [:stream | htmlObject renderFor: nil on: stream]
The nil I am passing in the last line is there in place of an ELRequest
entity and is not needed for simple HTML tags without custom components. You
might check it out. Be aware that my former colleague created it for our
specific project and I have never used it in any other place, so I just HOPE
it would work like I imagine. It is also not documented or tested at all.
Best regards,
Jan
Tim Mackinnon wrote
Hi - has anyone ever managed to extract the html builder out of seaside -
or written something equivalent?
I often find I want to build some HTML, but don’t want the full seaside -
and was wondering if anyone has managed to extract it, or have something
similar?
This combined with Renoir from BA-ST would give a good little light weight
web potential to run with Zinc.
Tim
Hi Tim.
My two cents: I am using XML Writer (from the catalog) and i am really
happy so far.
El lun., 28 sept. 2020 a las 19:28, Tim Mackinnon (tim@testit.works)
escribió:
Hi - has anyone ever managed to extract the html builder out of seaside -
or written something equivalent?
I often find I want to build some HTML, but don’t want the full seaside -
and was wondering if anyone has managed to extract it, or have something
similar?
This combined with Renoir from BA-ST would give a good little light weight
web potential to run with Zinc.
Tim
On Mon, Sep 28, 2020 at 08:35:43PM +0200, Franz Josef Konrad wrote:
Some years ago I was looking for something for the same purpose and looked
at this library http://smalltalkhub.com/PierceNg/WaterMint-HTML/index.html
Hi,
I stopped working on that and just used what comes with Seaside.
Seaside's HTML DSL works fine and has the nice add-on stuff like
Torsten's Bootstrap 3 and 4.
Only small road bump is form handling, where Seaside uses one or more
dynamic variables. To keep it simple, for my non-Seaside apps, when
rendering forms I use Zinc's HTML streaming instead. Mix and match.
Pierce
Yes, XMLWriter can do this. Use can also use:
xmlWriter outputsSelfClosingTags: false
before writing to get more HTML-like output
montyos.wordpress.com
Sent: Tuesday, September 29, 2020 at 3:08 PM
From: "Santiago Bragagnolo" <santiagobragagnolo@gmail.com>
To: "Any question about pharo is welcome" <pharo-users@lists.pharo.org>
Subject: [Pharo-users] Re: Standalone html builder (a la seaside without seaside?)
Hi Tim.
My two cents: I am using XML Writer (from the catalog) and i am really happy so far.
El lun., 28 sept. 2020 a las 19:28, Tim Mackinnon (<tim@testit.works>) escribió:
Hi - has anyone ever managed to extract the html builder out of seaside - or written something equivalent?
I often find I want to build some HTML, but don’t want the full seaside - and was wondering if anyone has managed to extract it, or have something similar?
This combined with Renoir from BA-ST would give a good little light weight web potential to run with Zinc.
Tim
Yes, see https://github.com/pharo-contributions/XML-XMLWriter
Gesendet: Mittwoch, 30. September 2020 um 16:42 Uhr
Von: "monty" <monty2@programmer.net>
An: pharo-users@lists.pharo.org
Betreff: [Pharo-users] Re: Standalone html builder (a la seaside without seaside?)
Yes, XMLWriter can do this. Use can also use:
xmlWriter outputsSelfClosingTags: false
before writing to get more HTML-like output
montyos.wordpress.com
Sent: Tuesday, September 29, 2020 at 3:08 PM
From: "Santiago Bragagnolo" <santiagobragagnolo@gmail.com>
To: "Any question about pharo is welcome" <pharo-users@lists.pharo.org>
Subject: [Pharo-users] Re: Standalone html builder (a la seaside without seaside?)
Hi Tim.
My two cents: I am using XML Writer (from the catalog) and i am really happy so far.
El lun., 28 sept. 2020 a las 19:28, Tim Mackinnon (<tim@testit.works>) escribió:
Hi - has anyone ever managed to extract the html builder out of seaside - or written something equivalent?
I often find I want to build some HTML, but don’t want the full seaside - and was wondering if anyone has managed to extract it, or have something similar?
This combined with Renoir from BA-ST would give a good little light weight web potential to run with Zinc.
Tim
if someone migrate it to github please let me know.
S
On 28 Sep 2020, at 20:35, Franz Josef Konrad franzl@fjkonrad.de wrote:
Am 28.09.2020 um 19:28 schrieb Tim Mackinnon:
Hi - has anyone ever managed to extract the html builder out of seaside - or written something equivalent?
I often find I want to build some HTML, but don’t want the full seaside - and was wondering if anyone has managed to extract it, or have something similar?
This combined with Renoir from BA-ST would give a good little light weight web potential to run with Zinc.
Tim
Some years ago I was looking for something for the same purpose and looked at this library http://smalltalkhub.com/PierceNg/WaterMint-HTML/index.html http://forum.world.st/Standalone-HTML-Model-td4967128.html . I don't know if this helps. I also just loaded WaterMint and looked at the code. Other than that I had no experience.
Franz Josef
Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France
Hi jan
can you do a PR to add eleven to the awesome list?
S
On 29 Sep 2020, at 10:37, Jan Blizničenko jan.bliznicenko@fit.cvut.cz wrote:
Hello,
I am using https://github.com/JanBliznicenko/eleven for one of my projects.
It is also a full framework, yet much simplier than Seaside and stateless
and I believe only the HTML building functionality can be used indpendently.
Example:
htmlObject := HtmlBody
with:
(HtmlDiv
class: 'content'
with:
(HtmlAnchor new
href: 'https://pharo.org';
targetBlank;
with: 'Pharo website';
yourself)).
String streamContents: [:stream | htmlObject renderFor: nil on: stream]
The nil I am passing in the last line is there in place of an ELRequest
entity and is not needed for simple HTML tags without custom components. You
might check it out. Be aware that my former colleague created it for our
specific project and I have never used it in any other place, so I just HOPE
it would work like I imagine. It is also not documented or tested at all.
Best regards,
Jan
Tim Mackinnon wrote
Hi - has anyone ever managed to extract the html builder out of seaside -
or written something equivalent?
I often find I want to build some HTML, but don’t want the full seaside -
and was wondering if anyone has managed to extract it, or have something
similar?
This combined with Renoir from BA-ST would give a good little light weight
web potential to run with Zinc.
Tim
Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France
Jan Blizničenko wrote
...HtmlDiv...
Cool :) I've often felt a suspicion that the lack of logical HTML domain
objects leaves a hole in the possibilities for declarative style / meta info
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html