Return-Path: X-Original-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-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 C23129DC5 for ; Tue, 19 Jun 2012 03:56:19 +0000 (UTC) Received: (qmail 87324 invoked by uid 500); 19 Jun 2012 03:56:19 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 87284 invoked by uid 500); 19 Jun 2012 03:56:18 -0000 Mailing-List: contact bloodhound-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-commits@incubator.apache.org Received: (qmail 87245 invoked by uid 99); 19 Jun 2012 03:56:16 -0000 Received: from bloodhound-vm.apache.org (HELO bloodhound-vm) (140.211.11.32) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 03:56:16 +0000 Received: from bloodhound-vm.apache.org (localhost [127.0.0.1]) by bloodhound-vm (Postfix) with ESMTP id E52A5803A8; Tue, 19 Jun 2012 03:56:15 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: "Apache Bloodhound" X-Trac-Version: 0.13dev-r10952 Cc: bloodhound-commits@incubator.apache.org Auto-Submitted: auto-generated X-Mailer: Trac 0.13dev-r10952, by Edgewall Software X-Trac-Project: Apache Bloodhound Date: Tue, 19 Jun 2012 03:56:14 -0000 Reply-To: bloodhound-dev@incubator.apache.org X-URL: https://issues.apache.org/bloodhound/ Subject: Re: [Apache Bloodhound] #45: Refine XML markup to embed dashboard layouts and widgets X-Trac-Ticket-URL: https://issues.apache.org/bloodhound/ticket/45#comment:6 Message-ID: <070.2564d7db36a416073689daa2bcb61c73@incubator.apache.org> References: <055.0cc78f91a8873129cf55bb6ee3723b95@incubator.apache.org> X-Trac-Ticket-ID: 45 In-Reply-To: <055.0cc78f91a8873129cf55bb6ee3723b95@incubator.apache.org> #45: Refine XML markup to embed dashboard layouts and widgets -------------------------+------------------------------------------------- Reporter: olemis | Owner: olemis Type: | Status: accepted enhancement | Milestone: RC1 for initial release Priority: minor | Version: Component: dashboard | Keywords: markup widget layout genshi Resolution: | template -------------------------+------------------------------------------------- Description changed by olemis: Old description: > Right now a combination of XML + JSON has to be inserted in Genshi > templates so as to embed widgets and layouts implemented by dashboard > plugin . > > For some reasons it's better to implement this feature using ''XML'' > instead. For instance , widget markup looked like shown below in the > early days (prior to r1351312 ) looked like the snippet shown below > > {{{ > #!xml > > > > {"args" : {"arg1" : "value1", > "arg2" : "value2" > } > } > > > > }}} > > ... whereas in current implementation ''only XML'' is needed (which is > more suitable to use together with ''Genshi'' statements e.g. `py:for` , > `py:if` ... ) > > {{{ > #!xml > > > > value1 > value2 > > > > }}} > > Nonetheless my initial attempt trying to get this done was not as > successful as I expected . > > Further details may be found in comments in Genshi templates included in > dashboard plugin New description: Right now a combination of XML + JSON has to be inserted in Genshi templates so as to embed widgets and layouts implemented by dashboard plugin . For some reasons it's better to implement this feature using ''XML'' instead. My initial attempt trying to get this done was not as successful as I expected but eventually a solution will come up handy . For instance , widget markup in the early days (prior to r1351312 ) looked like the snippet shown below {{{ #!xml {"args" : {"arg1" : "value1", "arg2" : "value2" } } }}} ... whereas in current implementation ''only XML'' is needed (which is more suitable to use together with ''Genshi'' statements e.g. `py:for` , `py:if` ... ) {{{ #!xml value1 value2 }}} Further details may be found in comments in Genshi templates included in dashboard plugin -- -- Ticket URL: Apache Bloodhound The Apache Bloodhound (incubating) issue tracker