Hi all,
I use an external program to design & update my HTML pages and would like to use them as templates in Seaside. In the front end, I used to extract elements by IDs and then added content to them using jQuery. That left the templates as valid HTML and felt very consistent to me.
Is there a similar approach to use within Seaside? Eg. getting a canvas cursor inside a specific element of the HTML file?
Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
-- Siemen
Hi Siemen,
do you know mustache?
http://norbert.hartl.name/blog/2013/10/03/mustache-templates-for-smalltalk/
Regards Sabine
2017-06-22 11:10 GMT+02:00 Siemen Baader [via Smalltalk] < ml+s1294792n4952231h56@n4.nabble.com>:
Hi all,
I use an external program to design & update my HTML pages and would like to use them as templates in Seaside. In the front end, I used to extract elements by IDs and then added content to them using jQuery. That left the templates as valid HTML and felt very consistent to me.
Is there a similar approach to use within Seaside? Eg. getting a canvas cursor inside a specific element of the HTML file?
Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
-- Siemen
seaside mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4952231&i=0 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/HTML-templating-tp4952231.html To start a new topic under Seaside General, email ml+s1294792n86180h75@n4. nabble.com To unsubscribe from Seaside, click here http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1310907&code=bWFuYWEuc2FiaW5lQGdtYWlsLmNvbXwxMzEwOTA3fC0xOTE3OTcxOTg5 . NAML http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://forum.world.st/HTML-templating-tp4952231p4952234.html Sent from the Seaside General mailing list archive at Nabble.com.
Thanks for the link, Sabine! This is worth a try. As my personal taste I'd prefer templating at DOM object level like WACanvas and jQuery do, but it is a pragmatic solution to my problem.
-- Siemen
On Thu, Jun 22, 2017 at 11:25 AM, Sabine Manaa manaa.sabine@gmail.com wrote:
Hi Siemen,
do you know mustache?
http://norbert.hartl.name/blog/2013/10/03/mustache- templates-for-smalltalk/
Regards Sabine
2017-06-22 11:10 GMT+02:00 Siemen Baader [via Smalltalk] <[hidden email] http:///user/SendEmail.jtp?type=node&node=4952234&i=0>:
Hi all,
I use an external program to design & update my HTML pages and would like to use them as templates in Seaside. In the front end, I used to extract elements by IDs and then added content to them using jQuery. That left the templates as valid HTML and felt very consistent to me.
Is there a similar approach to use within Seaside? Eg. getting a canvas cursor inside a specific element of the HTML file?
Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
-- Siemen
seaside mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4952231&i=0 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/HTML-templating-tp4952231.html To start a new topic under Seaside General, email [hidden email] http:///user/SendEmail.jtp?type=node&node=4952234&i=1 To unsubscribe from Seaside, click here. NAML http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: HTML templating http://forum.world.st/HTML-templating-tp4952231p4952234.html Sent from the Seaside General mailing list archive http://forum.world.st/Seaside-General-f86180.html at Nabble.com.
seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
On 22/06/17 11:26, Siemen Baader wrote:
Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
I've given up on external tools dealing with files. Files are for export. In Seaside I can reduce the duplication to a level that small changes impact so many files that using external file-based tools is pointless. That also means that I don't use Seaside for everything.
Stephan
On Thu, Jun 22, 2017 at 11:56 AM, Stephan Eggermont stephan@stack.nl wrote:
On 22/06/17 11:26, Siemen Baader wrote:
Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
I've given up on external tools dealing with files. Files are for export. In Seaside I can reduce the duplication to a level that small changes impact so many files that using external file-based tools is pointless.
Yes, that is one important drawback to be balanced against what I gain from the UIs of dedicated web design tools.
That also means that I don't use Seaside for everything.
Which alternatives do you use, in which situations?
-- Siemen
Stephan
seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
My experience also is, that it becomes confusing when you have large html files.
I also "translate" the html into smalltalk/seaside/mdl code.
Disadvantages are clear - if I get a new html file, I have to find out the changes and translate them again.
But for me the advantages weigh more.
also when the page turns into an application and gets more dynamic, it often is not possible to deal with html files.
2017-06-22 11:48 GMT+02:00 Siemen Baader [via Smalltalk] < ml+s1294792n4952242h97@n4.nabble.com>:
On Thu, Jun 22, 2017 at 11:56 AM, Stephan Eggermont <[hidden email] http:///user/SendEmail.jtp?type=node&node=4952242&i=0> wrote:
On 22/06/17 11:26, Siemen Baader wrote:
Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
I've given up on external tools dealing with files. Files are for export. In Seaside I can reduce the duplication to a level that small changes impact so many files that using external file-based tools is pointless.
Yes, that is one important drawback to be balanced against what I gain from the UIs of dedicated web design tools.
That also means that I don't use Seaside for everything.
Which alternatives do you use, in which situations?
-- Siemen
Stephan
seaside mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4952242&i=1 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
seaside mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4952242&i=2 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/HTML-templating-tp4952231p4952242.html To start a new topic under Seaside General, email ml+s1294792n86180h75@n4. nabble.com To unsubscribe from Seaside, click here http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1310907&code=bWFuYWEuc2FiaW5lQGdtYWlsLmNvbXwxMzEwOTA3fC0xOTE3OTcxOTg5 . NAML http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://forum.world.st/HTML-templating-tp4952231p4952244.html Sent from the Seaside General mailing list archive at Nabble.com.
This is an interesting thread as I’d been mulling over something similar having recently experimented off-piste with NodeJS and a static site generation library called metalsmith.io http://metalsmith.io/.
I bought a bootstrap template ($20) a few years ago which comes as a series of files and styles that I “moustache”’d quite easily to use with metalsmith (previously I had used it with Jekyll - but found the Ruby eco-system too awkward).
Having been to Pharo-days this year, I was inspired to check out Ecstatic (I haven’t got my head around that yet - it looks similar to metalsmith.io http://metalsmith.io/ in concept) for the static site component of a website - however my thought is that merging this with Seaside, where you write components for more dynamic elements of your site seems like a compelling thing to do.
I think this is perhaps where this conversation could go, and the trick of course is marrying a template file concept (Ala moustache) up with code components for more dynamic parts of a site. E.g. so that you match up style names and id’s effectively (e.g. how do you safely refactor the whole thing). I think it could be possible, and quite compelling….
Alternatively - or maybe complimentary, did someone recently refer to a tool to read in html and generate Seaside code that represents the same thing? Maybe I am imagining that? Would it be useful to do that, or just use it to bootstrap the hybrid I mention above?
I’m certainly going to investigate this, in the next few months.
Tim
On 22 Jun 2017, at 11:16, Sabine Manaa manaa.sabine@gmail.com wrote:
My experience also is, that it becomes confusing when you have large html files.
I also "translate" the html into smalltalk/seaside/mdl code.
Disadvantages are clear - if I get a new html file, I have to find out the changes and translate them again.
But for me the advantages weigh more.
also when the page turns into an application and gets more dynamic, it often is not possible to deal with html files.
2017-06-22 11:48 GMT+02:00 Siemen Baader [via Smalltalk] <[hidden email] x-msg://128/user/SendEmail.jtp?type=node&node=4952244&i=0>:
On Thu, Jun 22, 2017 at 11:56 AM, Stephan Eggermont <[hidden email] http://user/SendEmail.jtp?type=node&node=4952242&i=0> wrote: On 22/06/17 11:26, Siemen Baader wrote: Other approaches welcome, I just want to keep my templates as valid HTML outside the image so I can use external dev tools on them.
I've given up on external tools dealing with files. Files are for export. In Seaside I can reduce the duplication to a level that small changes impact so many files that using external file-based tools is pointless.
Yes, that is one important drawback to be balanced against what I gain from the UIs of dedicated web design tools.
That also means that I don't use Seaside for everything.
Which alternatives do you use, in which situations?
-- Siemen
Stephan
seaside mailing list [hidden email] http://user/SendEmail.jtp?type=node&node=4952242&i=1 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
seaside mailing list [hidden email] http://user/SendEmail.jtp?type=node&node=4952242&i=2 http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/HTML-templating-tp4952231p4952242.html http://forum.world.st/HTML-templating-tp4952231p4952242.html To start a new topic under Seaside General, email [hidden email] x-msg://128/user/SendEmail.jtp?type=node&node=4952244&i=1 To unsubscribe from Seaside, click here applewebdata://E52051C4-808E-49DF-82E9-A153ED248961. NAML http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: HTML templating http://forum.world.st/HTML-templating-tp4952231p4952244.html Sent from the Seaside General mailing list archive http://forum.world.st/Seaside-General-f86180.html at Nabble.com. _______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
seaside@lists.squeakfoundation.org