HTML generation for people who know HTML?

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

HTML generation for people who know HTML?

Stefan Scholl
The few examples I've seen used different names for the things
everyone working with HTML already knows. So you have to learn
additional keywords to generate HTML. Like "heading" instead of
the names h1 to h6. "paragraph", etc.

Have I missed something?


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

RE: HTML generation for people who know HTML?

Robert Sirois
You're not the only one to bring this up. It is what it is, basically. You can write some convenience methods on the brush classes if that helps, or just assume that the abbreviated tag names are actually spelled out. The reason for this (so I gather) is that Smalltalk is designed to read well for the programmer. That way, it feels like you're writing a document or something more than a confuddlation (ok, so that's not a word...) of variables and logic surrounded by a whole lot of syntax (ie. JavaScript). I believe it's for the better, but that's my opinion. Moral of the story: all the canvas brushes are constructed by calling the full name of the tag (paragraph > p, h1 > heading level: 1, unorderedList > ul, listItem > li, etc.).

RS

> To: [hidden email]

> From: [hidden email]
> Date: Thu, 19 Jan 2012 15:21:52 +0000
> Subject: [Seaside] HTML generation for people who know HTML?
>
> The few examples I've seen used different names for the things
> everyone working with HTML already knows. So you have to learn
> additional keywords to generate HTML. Like "heading" instead of
> the names h1 to h6. "paragraph", etc.
>
> Have I missed something?
>
>
> _______________________________________________
> 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: HTML generation for people who know HTML?

Lukas Renggli
In reply to this post by Stefan Scholl
We like readable names and the auto-completer good enough to type most
extra characters anyway.

There is nothing that prevents you from adding your own synonyms with
an extension package.

Lukas

On 19 January 2012 16:21, Stefan Scholl <[hidden email]> wrote:

> The few examples I've seen used different names for the things
> everyone working with HTML already knows. So you have to learn
> additional keywords to generate HTML. Like "heading" instead of
> the names h1 to h6. "paragraph", etc.
>
> Have I missed something?
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



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

Re: HTML generation for people who know HTML?

Nick
and there is always seafox to help you translate: http://seafox.seasidehosting.st/

On 19 January 2012 15:40, Lukas Renggli <[hidden email]> wrote:
We like readable names and the auto-completer good enough to type most
extra characters anyway.

There is nothing that prevents you from adding your own synonyms with
an extension package.

Lukas

On 19 January 2012 16:21, Stefan Scholl <[hidden email]> wrote:
> The few examples I've seen used different names for the things
> everyone working with HTML already knows. So you have to learn
> additional keywords to generate HTML. Like "heading" instead of
> the names h1 to h6. "paragraph", etc.
>
> Have I missed something?
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
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: HTML generation for people who know HTML?

Johan Brichau-2
In reply to this post by Lukas Renggli

On 19 Jan 2012, at 16:40, Lukas Renggli wrote:

> We like readable names and the auto-completer good enough to type most
> extra characters anyway.

+100

To demonstrate this to a co-developer, I once changed the implementation of a render method to use the html tag names instead of the Seaside render method names.
The html tag names are _not_ readable when used as Smalltalk method names.

The Seaside rendering methods are something that one gets used to in less than a day. Moreover, they are all implemented on the WARenderCanvas hierarchy, which makes it easy to search for a correct method when you are looking for something.

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

Re: HTML generation for people who know HTML?

Jon Paynter-2
In reply to this post by Nick
Once you learn the seaside terms for your favorite html tags, it works nicely.  But even after several years i get hung up on heading vs header.
For everything else - there is the class browser on WAHtmlCanvas.

On Thu, Jan 19, 2012 at 8:06 AM, Nick Ager <[hidden email]> wrote:
and there is always seafox to help you translate: http://seafox.seasidehosting.st/


On 19 January 2012 15:40, Lukas Renggli <[hidden email]> wrote:
We like readable names and the auto-completer good enough to type most
extra characters anyway.

There is nothing that prevents you from adding your own synonyms with
an extension package.

Lukas

On 19 January 2012 16:21, Stefan Scholl <[hidden email]> wrote:
> The few examples I've seen used different names for the things
> everyone working with HTML already knows. So you have to learn
> additional keywords to generate HTML. Like "heading" instead of
> the names h1 to h6. "paragraph", etc.
>
> Have I missed something?
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
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



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

Re: HTML generation for people who know HTML?

sebastianconcept@gmail.co
is not the one that's the opposite of the footer.

Done, you never forget it again.

:)


On Jan 19, 2012, at 3:52 PM, Jon Paynter wrote:

Once you learn the seaside terms for your favorite html tags, it works nicely.  But even after several years i get hung up on heading vs header.
For everything else - there is the class browser on WAHtmlCanvas.

On Thu, Jan 19, 2012 at 8:06 AM, Nick Ager <[hidden email]> wrote:
and there is always seafox to help you translate: http://seafox.seasidehosting.st/


On 19 January 2012 15:40, Lukas Renggli <[hidden email]> wrote:
We like readable names and the auto-completer good enough to type most
extra characters anyway.

There is nothing that prevents you from adding your own synonyms with
an extension package.

Lukas

On 19 January 2012 16:21, Stefan Scholl <[hidden email]> wrote:
> The few examples I've seen used different names for the things
> everyone working with HTML already knows. So you have to learn
> additional keywords to generate HTML. Like "heading" instead of
> the names h1 to h6. "paragraph", etc.
>
> Have I missed something?
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
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


_______________________________________________
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: HTML generation for people who know HTML?

Philippe Marschall
In reply to this post by Lukas Renggli
2012/1/19 Lukas Renggli <[hidden email]>:
> We like readable names and the auto-completer good enough to type most
> extra characters anyway.

It also allows us to make some things more consistent, for example we
have #url: for everything no matter whether it's src, href or
something else. #tableHeading vs. #tableHead can be a bit confusing
though but it's not like it's any better in plain HTML.

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

Re: HTML generation for people who know HTML?

Jon Paynter-2
Consistency is good.
I'll gladly trade consistency for the occasional DNU when i confuse table heading vs header

On Thu, Jan 19, 2012 at 10:26 AM, Philippe Marschall <[hidden email]> wrote:
2012/1/19 Lukas Renggli <[hidden email]>:
> We like readable names and the auto-completer good enough to type most
> extra characters anyway.

It also allows us to make some things more consistent, for example we
have #url: for everything no matter whether it's src, href or
something else. #tableHeading vs. #tableHead can be a bit confusing
though but it's not like it's any better in plain HTML.

Cheers
Philippe
_______________________________________________
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: HTML generation for people who know HTML?

Stefan Scholl
In reply to this post by Jon Paynter-2
Well, at least the most of the new HTML5 elements have long names
and are called the same.


Jon Paynter <[hidden email]> wrote:

> Once you learn the seaside terms for your favorite html tags, it works
> nicely.  But even after several years i get hung up on heading vs header.
> For everything else - there is the class browser on WAHtmlCanvas.
>
> On Thu, Jan 19, 2012 at 8:06 AM, Nick Ager <[hidden email]> wrote:
>
>> and there is always seafox to help you translate:
>> http://seafox.seasidehosting.st/
>>
>>
>> On 19 January 2012 15:40, Lukas Renggli <[hidden email]> wrote:
>>
>>> We like readable names and the auto-completer good enough to type most
>>> extra characters anyway.
>>>
>>> There is nothing that prevents you from adding your own synonyms with
>>> an extension package.
>>>
>>> Lukas
>>>
>>> On 19 January 2012 16:21, Stefan Scholl <[hidden email]> wrote:
>>> > The few examples I've seen used different names for the things
>>> > everyone working with HTML already knows. So you have to learn
>>> > additional keywords to generate HTML. Like "heading" instead of
>>> > the names h1 to h6. "paragraph", etc.
>>> >
>>> > Have I missed something?
>>> >
>>> >
>>> > _______________________________________________
>>> > seaside mailing list
>>> > [hidden email]
>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>>
>>>
>>> --
>>> Lukas Renggli
>>> www.lukas-renggli.ch
>>> _______________________________________________
>>> 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
>>
>>
>
>    [-- text/html, encoding quoted-printable, charset: ISO-8859-1, 67 lines --]
>
> [-- text/plain, encoding 7bit, charset: us-ascii, 5 lines --]
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/
<!--[if IE 6]><script>for(x in document.open);</script><![endif]-->

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

Re: HTML generation for people who know HTML?

Stefan Scholl
In reply to this post by Johan Brichau-2
Johan Brichau <[hidden email]> wrote:

> On 19 Jan 2012, at 16:40, Lukas Renggli wrote:
>> We like readable names and the auto-completer good enough to type most
>> extra characters anyway.
>
> +100
>
> To demonstrate this to a co-developer, I once changed the
> implementation of a render method to use the html tag names
> instead of the Seaside render method names.
> The html tag names are _not_ readable when used as Smalltalk method names.
>
> The Seaside rendering methods are something that one gets used
> to in less than a day. Moreover, they are all implemented on
> the WARenderCanvas hierarchy, which makes it easy to search for
> a correct method when you are looking for something.


I am new to Smalltalk and Seaside. You should do it my way. ;-)


OK, I'll try to ignore the friction I'm feeling right now. At
least I'm only seeing small parts of the whole page at any time.
Just like I only see small parts of the whole program, compared
to other programming languages.

Halos help me find which part of the page is reponsible in case I
find some ugly looking layout errors.

OK, I'll deal with it.





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

Re: HTML generation for people who know HTML?

Stefan Scholl
In reply to this post by Nick
Nick Ager <[hidden email]> wrote:
> and there is always seafox to help you translate:
> http://seafox.seasidehosting.st/

Doesn't support HTML5 (only as unkown elements), but helps to
port some structures.



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

Re: HTML generation for people who know HTML?

Nick
Nick Ager <[hidden email]> wrote:
> and there is always seafox to help you translate:
> http://seafox.seasidehosting.st/

Doesn't support HTML5 (only as unkown elements), but helps to
port some structures.

Strange - it should support all the Html elements and attributes Seaside supports. Is there some specific html that it hasn't translated correctly?

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

Re: HTML generation for people who know HTML?

Stefan Scholl
Nick Ager <[hidden email]> wrote:
>> Nick Ager <[hidden email]> wrote:
>> > and there is always seafox to help you translate:
>> > http://seafox.seasidehosting.st/
>>
>> Doesn't support HTML5 (only as unkown elements), but helps to
>> port some structures.
>
> Strange - it should support all the Html elements and attributes Seaside
> supports. Is there some specific html that it hasn't translated correctly?


<section>
 <header>
  <h1>foo</h1>
 </header>
 <p>bar</p>
</section>

===>

"Unrecognised element 'section'"
(html tag: 'section') with:[
        "Unrecognised element 'header'"
        (html tag: 'header') with:[
                html heading level: 1; with: 'foo' ].
        html paragraph: 'bar' ]





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

Re: HTML generation for people who know HTML?

Paul DeBruicker
I uploaded a package to the Seaside issues list that fixes this issue.

Its here:  https://code.google.com/p/seaside/issues/detail?id=701


On 12-01-20 07:05 AM, Stefan Scholl wrote:

> Nick Ager<[hidden email]>  wrote:
>>> Nick Ager<[hidden email]>  wrote:
>>>> and there is always seafox to help you translate:
>>>> http://seafox.seasidehosting.st/
>>>
>>> Doesn't support HTML5 (only as unkown elements), but helps to
>>> port some structures.
>>
>> Strange - it should support all the Html elements and attributes Seaside
>> supports. Is there some specific html that it hasn't translated correctly?
>
>
> <section>
>   <header>
>    <h1>foo</h1>
>   </header>
>   <p>bar</p>
> </section>
>
> ===>
>
> "Unrecognised element 'section'"
> (html tag: 'section') with:[
> "Unrecognised element 'header'"
> (html tag: 'header') with:[
> html heading level: 1; with: 'foo' ].
> html paragraph: 'bar' ]
>
>
>
>
>
> _______________________________________________
> 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: HTML generation for people who know HTML?

Nick
Hi Paul, Stefan,

Hmmm, that seems more like a bug with Seafox - I'll try to have a look this weekend and put a new version up

Nick

On 20 January 2012 16:29, Paul DeBruicker <[hidden email]> wrote:
I uploaded a package to the Seaside issues list that fixes this issue.

Its here:  https://code.google.com/p/seaside/issues/detail?id=701



On 12-01-20 07:05 AM, Stefan Scholl wrote:
Nick Ager<[hidden email]>  wrote:
Nick Ager<[hidden email]>  wrote:
and there is always seafox to help you translate:
http://seafox.seasidehosting.st/

Doesn't support HTML5 (only as unkown elements), but helps to
port some structures.

Strange - it should support all the Html elements and attributes Seaside
supports. Is there some specific html that it hasn't translated correctly?


<section>
 <header>
  <h1>foo</h1>
 </header>
 <p>bar</p>
</section>

===>

"Unrecognised element 'section'"
(html tag: 'section') with:[
       "Unrecognised element 'header'"
       (html tag: 'header') with:[
               html heading level: 1; with: 'foo' ].
       html paragraph: 'bar' ]





_______________________________________________
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


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

Re: HTML generation for people who know HTML?

Nick
Hi,

I've finally got round to fixing Seafox [1] and it will now correctly translate:

<section>
 <header>
  <h1>foo</h1>
 </header>
 <p>bar</p>
</section>

The translation issue was caused by Seafox's simply string comparison failing as WAHtmlCanvas>>#section and WAHtmlCanvas>>#header had a superfluous white space - a CR - at the end of their string. 
The following tags where effected:

summary
header
section
footer

I've made Seafox a little more resilient using #withoutTrailingBlanks and the extra space has been removed from the these tags in the latest canvas [2] - see:
Name: Seaside-HTML5-pmm.28
Author: pmm
Time: 24 January 2012, 7:30:51 am
UUID: 75c03738-39b6-4138-8857-2fd11a8ebb32
Ancestors: Seaside-HTML5-NickAger.26


Nick


On 20 January 2012 16:36, Nick Ager <[hidden email]> wrote:
Hi Paul, Stefan,

Hmmm, that seems more like a bug with Seafox - I'll try to have a look this weekend and put a new version up

Nick


On 20 January 2012 16:29, Paul DeBruicker <[hidden email]> wrote:
I uploaded a package to the Seaside issues list that fixes this issue.

Its here:  https://code.google.com/p/seaside/issues/detail?id=701



On 12-01-20 07:05 AM, Stefan Scholl wrote:
Nick Ager<[hidden email]>  wrote:
Nick Ager<[hidden email]>  wrote:
and there is always seafox to help you translate:
http://seafox.seasidehosting.st/

Doesn't support HTML5 (only as unkown elements), but helps to
port some structures.

Strange - it should support all the Html elements and attributes Seaside
supports. Is there some specific html that it hasn't translated correctly?


<section>
 <header>
  <h1>foo</h1>
 </header>
 <p>bar</p>
</section>

===>

"Unrecognised element 'section'"
(html tag: 'section') with:[
       "Unrecognised element 'header'"
       (html tag: 'header') with:[
               html heading level: 1; with: 'foo' ].
       html paragraph: 'bar' ]





_______________________________________________
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



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