quick 'n' dirty

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

quick 'n' dirty

Brad Fuller
is there a way to take html text and spit it out as a page?

I have long pages that have all the html tags already in it that I need
to push out -- I don't have the time to do anything else. This is a
quick n dirty stop gap for now.

Am I making myself clear?


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: quick 'n' dirty

Brian Brown-2
Sure

Create a WAComponent subclass,

create a method like:

myPage
        ^ '<br> whatever html in there'

renderContentOn: html

        html html: self myPage


This issue will be with links to other pages in your site, because  
seaside generates those. Also, you have to escape single quotes by  
having 2 of them.

Brian


On Mar 2, 2006, at 5:08 PM, Brad Fuller wrote:

> is there a way to take html text and spit it out as a page?
>
> I have long pages that have all the html tags already in it that I  
> need
> to push out -- I don't have the time to do anything else. This is a
> quick n dirty stop gap for now.
>
> Am I making myself clear?
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: quick 'n' dirty

Brad Fuller
Brian Brown wrote:

> Sure
>
> Create a WAComponent subclass,
>
> create a method like:
>
> myPage
>     ^ '<br> whatever html in there'
>
> renderContentOn: html
>
>     html html: self myPage
ah... I see html html

ok, that worked! Thanks!


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

signature.asc (196 bytes) Download Attachment