Return-Path: Delivered-To: apmail-incubator-click-dev-archive@minotaur.apache.org Received: (qmail 52207 invoked from network); 18 Apr 2009 07:57:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2009 07:57:04 -0000 Received: (qmail 28906 invoked by uid 500); 18 Apr 2009 07:57:04 -0000 Delivered-To: apmail-incubator-click-dev-archive@incubator.apache.org Received: (qmail 28868 invoked by uid 500); 18 Apr 2009 07:57:04 -0000 Mailing-List: contact click-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-dev@incubator.apache.org Received: (qmail 28860 invoked by uid 99); 18 Apr 2009 07:57:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Apr 2009 07:57:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sabob1@gmail.com designates 74.125.44.155 as permitted sender) Received: from [74.125.44.155] (HELO yx-out-1718.google.com) (74.125.44.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Apr 2009 07:56:55 +0000 Received: by yx-out-1718.google.com with SMTP id 3so54962yxi.0 for ; Sat, 18 Apr 2009 00:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=NgsMI0GY8b4SVWUNI44jM44+yB4xLY39h6LtANUhHFM=; b=t1rnWURTzF9XKIF10vkyuFkk05ExnWYAa/77njc1DyijJDXKLMwIrHdj1ssEJ76tgE leqPjx25SCAj1MtT14uQVlwkZHrDfoxWL4kdFtE3GT29BCRYMnmELZlusppsxAfI1j/k 6WwVPcKBy+zfkI11Kq7faNyIbExdjgOG0NkLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=UFf40KPd2RsXIsVb19p3KOr/hnl8R/i0mfZjSnHqYQyF8pld3QyP2sOUNUTCFARzmp SuHkSqJSgGojHFpqlDEJ0FcZoS7VJcwXA2+NbUdc7nHDG0HINBdaWycbcmm9NbOO2pOp 9rVbEgpxvc/RuyZORRmhHz/07lemqB7mQDVkw= Received: by 10.90.63.6 with SMTP id l6mr4304853aga.39.1240041394919; Sat, 18 Apr 2009 00:56:34 -0700 (PDT) Received: from ?10.0.0.100? (dsl-240-182-231.telkomadsl.co.za [41.240.182.231]) by mx.google.com with ESMTPS id 29sm6146040agd.78.2009.04.18.00.56.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 18 Apr 2009 00:56:34 -0700 (PDT) Message-ID: <49E987AE.5040408@gmail.com> Date: Sat, 18 Apr 2009 09:56:30 +0200 From: Bob Schellink User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: click-dev@incubator.apache.org Subject: Re: AW: Some features - was: "Re: [VOTE] Propose Click for Graduation" by Gabor. References: <4309018.198651240003153718.JavaMail.webmail@ps20zhh.bluewin.ch> In-Reply-To: <4309018.198651240003153718.JavaMail.webmail@ps20zhh.bluewin.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Jozsef, Perhaps we can introduce a service which encapsulates the URL mapping into a Service. A default implementation can handle .htm and .jsp but users can extend it for other purposes as well. How would the web.xml mapping look like for ClickServlet though? Say one wants to serve a *.css template backed by a Click Page how will it be mapped in web.xml? If one maps it as '*.css', then all css files, regardless if they have a backing Page, will be served by ClickServlet and it will need to handle that. kind regards bob jozsef.gabor@bluewin.ch wrote: > May I defend my points? > > > CSS templating: > It think dynamically generated CSS files are acceptable and they work > wonderfully. > They allow to change border colors background colors, background images > on the fly. > > Example: > input { > border-color: $objectStyle.borderColor; > border-width: 1px; > border-style: solid; > } > > > body{ > background-image: url($context/content?id=1&file=101&cat=0); > background-repeat: repeat; > } > > > XML files and RSS files: > RSS and list like XML files can be generated with templating too. > Very complex XML files require a library. > Sitemap Index and Sitemap files are same as XML > > Example sitemap template: > > > > #foreach ($pData in $pageData) > > $pData.location > $pData.lastModified > > #end > > > > Here are the living sitemap examples. > (The sitemap xml is requested as html so the browser will display it as > html. > Please open the source in the browser to be able to see the xml.) > http://217.114.115.252/sitemap.htm?cat=346 > http://217.114.115.252/sitemap.htm?cat=883 > http://217.114.115.252/sitemap-index.htm > > > Json data file can be generated with the xstream library. > If the Json data set is not huge the entire content can be collected > into a single string. > > > Javascript templating. > Sometimes javascript components need several configuration parameters. > These configuration parameters could be supplied by objects placed in > the context. > > > For example a flash object can be implemented as a custom control. > Instances of this the flash controls can be placed in the middle of > pages for example. > > It is also possible to create a flash-panel that use html template. > > Instances of the panel can be added to a page. > > Both solution would work. Selection is the question of preference. (I > prefer custom control for flash.) > > In general any kind of textual content (except json) can be served by > templating mechanism. > It may not be efficient to create custom control for everything. > > > Kind Regards. > Jozsef Gabor > > > > >