From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1150caefb87348f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-06 01:07:05 PST From: Dmitriy Anisimkov Newsgroups: comp.lang.ada Subject: Re: Ada Advocacy - WPG (Web Page Generation) scheme Date: Mon, 06 Oct 2003 14:41:23 +0700 Organization: A poorly-installed InterNetNews site Distribution: world Message-ID: References: NNTP-Posting-Host: 195.162.48.71 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ns.omskelecom.ru 1065426017 11899 195.162.48.71 (6 Oct 2003 07:40:17 GMT) X-Complaints-To: usenet@ns.omskelecom.ru NNTP-Posting-Date: Mon, 6 Oct 2003 07:40:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en In-Reply-To: Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!news.rosprint.net!radius!not-for-mail Xref: archiver1.google.com comp.lang.ada:295 Date: 2003-10-06T14:41:23+07:00 List-Id: Pascal Obry wrote: > Yep, but in many places you have scripts and this is plain wrong. Having > script into a Web page is mixing layout (HTML) and code. Both must really be > separated, one of the reason is that they are done by differents peoples. Pascal, Don't template_parser mixing code and HTML ? template_parser have own code inside of HTML too. We have to mix languages anyway, becouse dynamic data provided by non-HTML languages. Sure, the languages should be mixed very carrifully, but it is a Web Design Issue. If we are making dynamic pages inside of AWS callback, we have mix language Ada and HTML (make HTML output in Ada language). if we are making dynamic pages from template parser, we have to mix template parser language @@TABLE@@ @@IF@@ @@ELSIF@@ @_DATA_@ and HTML. Template_Parser internal language is far from Ada functionality. So why don't have Ada inside of HTML ? It is not possible to have DB access from template parser now. If we would have Ada inside of HTML, we would have ready to use DB access from dynamic HTML pages.