Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 48003 invoked from network); 25 Apr 2010 10:31:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Apr 2010 10:31:22 -0000 Received: (qmail 41512 invoked by uid 500); 25 Apr 2010 10:31:21 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 41451 invoked by uid 500); 25 Apr 2010 10:31:19 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 41444 invoked by uid 99); 25 Apr 2010 10:31:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Apr 2010 10:31:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Apr 2010 10:31:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3PAUr3p024997 for ; Sun, 25 Apr 2010 10:30:53 GMT Message-ID: <26690796.181661272191453533.JavaMail.jira@thor> Date: Sun, 25 Apr 2010 06:30:53 -0400 (EDT) From: "Bob Schellink (JIRA)" To: dev@click.apache.org Subject: [jira] Commented: (CLK-665) Click Page Templates in class path (in addition to webRoot [sub- ]folders) In-Reply-To: <29154554.181331272185390095.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLK-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860672#action_12860672 ] Bob Schellink commented on CLK-665: ----------------------------------- Why not package each module templates under META-INF/resources? http://click.apache.org/docs/user-guide/html/ch04s03.html#deploying-custom-resources > Click Page Templates in class path (in addition to webRoot [sub- ]folders) > -------------------------------------------------------------------------- > > Key: CLK-665 > URL: https://issues.apache.org/jira/browse/CLK-665 > Project: Click > Issue Type: Improvement > Components: core > Affects Versions: 2.2.0, 2.1.0 > Reporter: Andrey Rybin > > I have a large web application composed from several independent modules packaged as separate .jar files in WEB-INF/lib. > Now Click force me to copy all my .htm files (Page Templates) to 'main' module's webRoot folder (parent folder of WEB-INF), because Click look for templates only in webRoot folder and its subfolders (see XmlConfigService.getTemplateFiles), and then I have big htm midden in webRoot. > I can't make reusable just-drop-in jar-module for somebody else. > I have to make separate zip with htm templates with readme.txt with instructions where to copy them. > Please! Add option to look Page templates in classpath too. > See - http://static.springsource.org/spring/docs/2.0.x/reference/resources.html#resources-app-ctx-wildcards-in-resource-paths - > how I use Spring for building these separate jar with separate spring's xmls into one application. > See also excellent article about this modular concept: > http://blogs.reucon.com/srt/2007/07/06/modular_spring_configuration.html > I.e. Click could look in (for example) META-INF/ClickPageTemplates for Page mappings. > Then both Velocity and Freemarker can load templates from classpath. > PS: It looks like hand-made-OSGi. > PPS: See also > https://issues.apache.org/jira/browse/CLK-622 (~reversed situation: we have .htm, but don't have class). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.