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





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to