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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What is the best license to use for open source software? Date: Thu, 29 Jan 2015 09:50:46 +0100 Organization: cbb software GmbH Message-ID: <1w1u3p8o0pf3u.5fidvp7gla8x$.dlg@40tude.net> References: <616ae348-41f6-446f-9c4b-0da8e398e75b@googlegroups.com> <1391828381444007928.494546nonlegitur-futureapps.invalid@reader80.eternal-september.org> <1bmcls0l0g4ka$.1u5nfke8o2aod.dlg@40tude.net> <8f389b7e-31e8-48ea-98c4-cd4471db9293@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: OpkKbm9QwHUq0Y4SxjI2mw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:24784 Date: 2015-01-29T09:50:46+01:00 List-Id: On Wed, 28 Jan 2015 23:03:24 -0800 (PST), Vadim Godunko wrote: > On Tuesday, January 27, 2015 at 11:52:28 AM UTC+3, Dmitry A. Kazakov wrote: >> >> One basic issue more, should the template paradigm be: >> >> A. Substitution-based (some escape sequences in the text); >> B. Language-based; >> C. Programmable (some API to manipulate the template, plus intermediate >> embeddable code, plus GUI editor). >> > Matreshka includes templates engine that uses XML format for templates and > handles substitutions and conditional processing. Generated output can be > XML or optimized HTML (when template uses HTML namespace). See > > http://forge.ada-ru.org/matreshka/wiki/XML/Templates > > Source template not necessary should be file: it can be any stream of > stream elements or sequence of 'markup events' - elements of internal > representation of XML document. That would be A, while I prefer C. E.g. instead of XML: ... Ada's: ... & (if Condition then ... else Null_Text end if) & ... or simply ... & Condition * ... & ... Some set of types HTML_* with operations like "&", "*" etc. Thus no parser, maybe, parameter binder. Serialize/deserialize for keeping it in a file or in a database. I would also try to declare HTML elements as typed constants. The idea is to ensure the resulted HTML page being correct (e.g. matched elements ) for any set of actual parameters. One flaw of the approaches A and B is that there is no way to do this. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de