Return-Path: X-Original-To: apmail-incubator-rat-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-rat-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC4599937 for ; Mon, 31 Oct 2011 20:58:24 +0000 (UTC) Received: (qmail 10607 invoked by uid 500); 31 Oct 2011 20:58:24 -0000 Delivered-To: apmail-incubator-rat-commits-archive@incubator.apache.org Received: (qmail 10580 invoked by uid 500); 31 Oct 2011 20:58:24 -0000 Mailing-List: contact rat-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: rat-dev@incubator.apache.org Delivered-To: mailing list rat-commits@incubator.apache.org Received: (qmail 10573 invoked by uid 99); 31 Oct 2011 20:58:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 20:58:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 20:58:23 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EF92123889EB; Mon, 31 Oct 2011 20:58:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1195668 - in /incubator/rat/whisker/trunk/src/site: apt/meta-data.apt resources/examples/ resources/examples/template-license.xml Date: Mon, 31 Oct 2011 20:58:02 -0000 To: rat-commits@incubator.apache.org From: rdonkin@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111031205802.EF92123889EB@eris.apache.org> Author: rdonkin Date: Mon Oct 31 20:58:02 2011 New Revision: 1195668 URL: http://svn.apache.org/viewvc?rev=1195668&view=rev Log: Documented how template licenses work. Added: incubator/rat/whisker/trunk/src/site/resources/examples/ incubator/rat/whisker/trunk/src/site/resources/examples/template-license.xml (with props) Modified: incubator/rat/whisker/trunk/src/site/apt/meta-data.apt Modified: incubator/rat/whisker/trunk/src/site/apt/meta-data.apt URL: http://svn.apache.org/viewvc/incubator/rat/whisker/trunk/src/site/apt/meta-data.apt?rev=1195668&r1=1195667&r2=1195668&view=diff ============================================================================== --- incubator/rat/whisker/trunk/src/site/apt/meta-data.apt (original) +++ incubator/rat/whisker/trunk/src/site/apt/meta-data.apt Mon Oct 31 20:58:02 2011 @@ -122,6 +122,99 @@ Whisker Meta-Data Model ]> ---------------------------------------- + +* Some More Advanced Features Explained + +** Templates For License Families + + Some familiar open source licenses (for example, + the {{{http://www.opensource.org/licenses/BSD-3-Clause}BSD 3-Clause License}}) are better understood + as families of licenses. Each family is based on a parameterised template. When the license is used, + an appropriate value is substituted for each parameter. + + Whisker supports template licenses with parameter substitution. Parameter names are defined by <<>> elements + within a << + ... ++------------------------------------------------------------------------+ + + Each <<<$\{parameter name\}>>> within the license <<>> will be substituted by + the <<>> with matching <<>> within a <<>> in a <<>> block. When referring + to a template license, this block is required. All parameter names defined must have exactly one value specified. + ++------------------------------------------------------------------------+ + + + foo + bar + + ... ++------------------------------------------------------------------------+ + + +*** A Template Example + + This simple template example features a <<>> license. + Source is {{{./examples/template-license.xml}here}}. + ++------------------------------------------------------------------------+ + + + + + + + + + ${BAR}, ${FOO}. + + + + ... + + + + + + + FOO + world + + + + BAR + hello + + + + + + ++------------------------------------------------------------------------+ + + * A Sample Describes components assembled into the {{{http://james.apache.org}Apache James}} Added: incubator/rat/whisker/trunk/src/site/resources/examples/template-license.xml URL: http://svn.apache.org/viewvc/incubator/rat/whisker/trunk/src/site/resources/examples/template-license.xml?rev=1195668&view=auto ============================================================================== --- incubator/rat/whisker/trunk/src/site/resources/examples/template-license.xml (added) +++ incubator/rat/whisker/trunk/src/site/resources/examples/template-license.xml Mon Oct 31 20:58:02 2011 @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + ${BAR}, ${FOO}. + + + + + + + + + + + + + + + FOO + world + + + + BAR + hello + + + + + + \ No newline at end of file Propchange: incubator/rat/whisker/trunk/src/site/resources/examples/template-license.xml ------------------------------------------------------------------------------ svn:eol-style = native