Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 36361 invoked from network); 4 Feb 2009 07:25:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2009 07:25:05 -0000 Received: (qmail 70606 invoked by uid 500); 4 Feb 2009 07:24:59 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 70570 invoked by uid 500); 4 Feb 2009 07:24:59 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 70559 invoked by uid 99); 4 Feb 2009 07:24:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 23:24:59 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of obinna@gmail.com designates 209.85.220.20 as permitted sender) Received: from [209.85.220.20] (HELO mail-fx0-f20.google.com) (209.85.220.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2009 07:24:52 +0000 Received: by fxm13 with SMTP id 13so3039147fxm.11 for ; Tue, 03 Feb 2009 23:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=mf84p2pWraxwRi8K0e66gahX+NYl4NztsIFJqc3fITI=; b=d86Fn+DvFNOGBF+BiOsh+5G6+MPEwJxnfHMSnd5xsGokbXVDsJ9WRccgAk+YkQLCc6 XycQ1QAkdV2e1iEVv70pA7+ODm8xuPhPSPBIqrPe4waugZuE7cIXkibHvmHZHJ0GOgJd 9k1qNV7JKH7pnRywH5e4oEjVYepTM+LYUd9tw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vYRj0QU7xCRQUHSKYUJf/cselYz1Qheo14TR/6la7HmCVssUAcm7R/vTDfzleXwwhf c3o6/zJ7xCZDz+oyy+avBADcEP1mAC5HBOIStWI7U/rAV3V9Gr/vw7phXeE23kKbk0nR sI0GcYj9h1EXgnwXeZ2mIk7tNODUAc/UFbh2o= MIME-Version: 1.0 Received: by 10.181.31.16 with SMTP id i16mr1063400bkj.129.1233732271129; Tue, 03 Feb 2009 23:24:31 -0800 (PST) Date: Wed, 4 Feb 2009 10:24:31 +0300 Message-ID: Subject: Pluggable themes for JavaTemplates plugin From: Obinna To: dev@struts.apache.org Content-Type: multipart/alternative; boundary=001636c92479c4c42e046212add7 X-Virus-Checked: Checked by ClamAV on apache.org --001636c92479c4c42e046212add7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I'd like to know if there's a 'recommended' way of extending the javatemplates theme. I've been using the default freemarker templates and have developed a few custom tag templates for some custom tags. I'm eager to port to javatemplates. I noticed that the SimpleTheme is 'hard-coded' in the JavaTemplateEngine like: private Themes themes = new Themes() {{ add(new SimpleTheme()); }}; which doesn't really allow for registering new themes. I can suggest a theme plugin/registry but wondered if it's already been considered. There should also be a pluggable way of adding Handlers to a theme. - Eric --001636c92479c4c42e046212add7--