Hi Philippe, Good point and that was the motivation for proposing the double curly braces.
Originally, I was going to use Mustache (http://mustache.github.io/mustache.5.html) to implement the template in the SPDX tools. However, the current proposal is not compatible with that format. I am now thinking we should choose a different set of characters so that we could add Mustaches support for SPDX license templates in the future. I would support either proposal (double curly braces or double angle brackets), but I am currently leaning towards double curly braces to allow future Mustache support. Gary -----Original Message----- From: Philippe Ombredanne [mailto:[email protected]] Sent: Monday, June 17, 2013 10:42 AM To: [email protected] Cc: Gary O'Neall; [email protected]; Jilayne Lovejoy Subject: Re: none On Sun, Jun 16, 2013 at 7:47 PM, D M German <[email protected]> wrote: > * Double braces {{}} > One problem I have run into is that {{}} are widely used by wikis and > other HTML systems to escape a template of some sort. Try for example > editing the following page and changing "{{}}" to "{{ and }}" > http://wiki.spdx.org/view/Technical_Team/Proposals/2013-6-13/License_T > emplate I have added the example at the bottom of the page. You will > see how it is rendered because the wiki software has special > interpretation for these fields. > I ran into the same problem at github and even my own website software. > This will make our editing of the rules in the wiki more difficult > that they need to be. My suggestion is to replace the double braces > with double angle brackets <<>> Again, this is simply stylistic and > does not change anything. Daniel: I think the main reason why curly braces were selected is because they are a de-facto convention for text template engines, which of course includes things like wiki and several HTML and text templating systems and libraries. This is actually part of their appeal, not a drawback IMHO. And yes this may mean that in cases we will have to escape the curly braces properly or mark them such that they are not recognized by a template engine. And angle brackets would likely have the same issues wrt to HTML/XML. -- Philippe Ombredanne _______________________________________________ Spdx-tech mailing list [email protected] https://lists.spdx.org/mailman/listinfo/spdx-tech
