[Iliad] raw HTML in Iliad
Hi all, is there a way to render raw HTML from Iliad widgets, or perhaps mustache templates? I'm interested in not using the builders always because I use an external web editor that generates plain HTML and that has some advantages in my workflow. Is it possible do it with Seaside & Reef instead? -- Siemen
Formulating the question helped me to find the solution after I posted: index ^ [ :e | e add: (ILRawHtmlElement new contents: 'hello <strong>wo<br>rld</strong>') ] :) cheers, Siemen On Tue, Feb 13, 2018 at 9:14 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi all,
is there a way to render raw HTML from Iliad widgets, or perhaps mustache templates? I'm interested in not using the builders always because I use an external web editor that generates plain HTML and that has some advantages in my workflow.
Is it possible do it with Seaside & Reef instead?
-- Siemen
On Tue, Feb 13, 2018 at 9:20 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Formulating the question helped me to find the solution after I posted:
index ^ [ :e | e add: (ILRawHtmlElement new contents: 'hello <strong>wo<br>rld</strong>') ]
:)
Hi! Just for the record, There is a Pharo mustache implementation. (https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/la...) Also, it is possible with Seaside to render raw html via the method #html:
cheers, Siemen
On Tue, Feb 13, 2018 at 9:14 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi all,
is there a way to render raw HTML from Iliad widgets, or perhaps mustache templates? I'm interested in not using the builders always because I use an external web editor that generates plain HTML and that has some advantages in my workflow.
Is it possible do it with Seaside & Reef instead?
-- Siemen
-- Cyril Ferlicot https://ferlicot.fr
Thanks! On Tue, Feb 13, 2018 at 9:51 AM, Cyril Ferlicot <cyril.ferlicot@gmail.com> wrote:
On Tue, Feb 13, 2018 at 9:20 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Formulating the question helped me to find the solution after I posted:
index ^ [ :e | e add: (ILRawHtmlElement new contents: 'hello <strong>wo<br>rld</strong>') ]
:)
Hi!
Just for the record,
There is a Pharo mustache implementation. (https://ci.inria.fr/pharo-contribution/view/Books/job/ EnterprisePharoBook/lastSuccessfulBuild/artifact/ book-result/Mustache/Mustache.pdf) Also, it is possible with Seaside to render raw html via the method #html:
cheers, Siemen
On Tue, Feb 13, 2018 at 9:14 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi all,
is there a way to render raw HTML from Iliad widgets, or perhaps
mustache
templates? I'm interested in not using the builders always because I use an external web editor that generates plain HTML and that has some advantages in my workflow.
Is it possible do it with Seaside & Reef instead?
-- Siemen
-- Cyril Ferlicot https://ferlicot.fr
On 13 Feb 2018, at 09:51, Cyril Ferlicot <cyril.ferlicot@gmail.com> wrote:
On Tue, Feb 13, 2018 at 9:20 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Formulating the question helped me to find the solution after I posted:
index ^ [ :e | e add: (ILRawHtmlElement new contents: 'hello <strong>wo<br>rld</strong>') ]
:)
Hi!
Just for the record,
There is a Pharo mustache implementation. (https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/la...) Also, it is possible with Seaside to render raw html via the method #html:
There is also ZnHtmlOutputStream (a simple helper class) for generating syntactically correct HTML.
cheers, Siemen
On Tue, Feb 13, 2018 at 9:14 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi all,
is there a way to render raw HTML from Iliad widgets, or perhaps mustache templates? I'm interested in not using the builders always because I use an external web editor that generates plain HTML and that has some advantages in my workflow.
Is it possible do it with Seaside & Reef instead?
-- Siemen
-- Cyril Ferlicot https://ferlicot.fr
Sven Van Caekenberghe-2 wrote
There is also ZnHtmlOutputStream (a simple helper class) for generating syntactically correct HTML.
Yes, it's nice. I've used it in images when I needed to work with HTML without Seaside loaded. ----- Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
On 13 Feb 2018, at 13:12, Sean P. DeNigris <sean@clipperadams.com> wrote:
Sven Van Caekenberghe-2 wrote
There is also ZnHtmlOutputStream (a simple helper class) for generating syntactically correct HTML.
Yes, it's nice. I've used it in images when I needed to work with HTML without Seaside loaded.
It is way simpler though, Seaside's model is much better (but consists of lots of classes). YMMV
Hi, i think just doing e html: '<some html>' also works. Elements should not be instantiated like you do, there is an interface for each element that can be called on "e". e div, e html:, e h1:, etc. The interface instantiates the right class behind. You can find this somewhere in the core classes, but i don"t remember where and i can't check right now. Steven. Le 2018-02-13 09:20, Siemen Baader a écrit :
Formulating the question helped me to find the solution after I posted:
index ^ [ :e | e add: (ILRawHtmlElement new contents: 'hello <strong>wo<br>rld</strong>') ]
:)
cheers, Siemen
On Tue, Feb 13, 2018 at 9:14 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi all,
is there a way to render raw HTML from Iliad widgets, or perhaps mustache templates? I'm interested in not using the builders always because I use an external web editor that generates plain HTML and that has some advantages in my workflow.
Is it possible do it with Seaside & Reef instead? -- Siemen
-- kloum.io
participants (5)
-
Cyril Ferlicot -
Sean P. DeNigris -
Siemen Baader -
Steven Costiou -
Sven Van Caekenberghe