Plugins w/ Jelly tags?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugins w/ Jelly tags?

Eric Crahen-3
I was trying to add some jelly tags for use in my global.jelly, config.jelly, etc. files for a plugin and was having some trouble getting it working. I started by copying the section.jelly from hudson's /lib/form into my plugin under I placed them in src/main/resources/lib/eric. I added xmlns:e="/lib/eric" to my jelly tag in config.jelly (which is loaded by with the plugin I've made) and added an <e:section title="Hello World"/>. I don't get an error, but I also don't get the behavior I expect. The Hello World doesn't show up, and when I view the page source with my browser, I just see the unmolested <e:section title="Hello World"/> tag, which I'd hoped would transformed.

Is it possible to install some jelly tags with a plugin?

--

- Eric
Reply | Threaded
Open this post in threaded view
|

Re: Plugins w/ Jelly tags?

Kohsuke Kawaguchi
Administrator
Yes. I don't have the workspace handy right now, but I'm pretty sure
one of the plugins in CVS has its own tag library. So try 'find .
-name "*.jelly*"' and I think you'll find it.

A tag library directory needs to contain one place holder file --- I
think it's called "taglib" but not too sure. So maybe you are just
missing that.

In any case I recommend searching our existing plugins.

2007/1/31, Eric Crahen <[hidden email]>:

> I was trying to add some jelly tags for use in my global.jelly,
> config.jelly, etc. files for a plugin and was having some trouble getting it
> working. I started by copying the section.jelly from hudson's /lib/form into
> my plugin under I placed them in src/main/resources/lib/eric. I added
> xmlns:e="/lib/eric" to my jelly tag in config.jelly (which is loaded by with
> the plugin I've made) and added an <e:section title="Hello World"/>. I don't
> get an error, but I also don't get the behavior I expect. The Hello World
> doesn't show up, and when I view the page source with my browser, I just see
> the unmolested <e:section title="Hello World"/> tag, which I'd hoped would
> transformed.
>
> Is it possible to install some jelly tags with a plugin?
>
> --
>
> - Eric


--
--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Plugins w/ Jelly tags?

Eric Crahen-3
Its the taglib file that did the trick. Thanks

On 1/31/07, Kohsuke Kawaguchi <[hidden email]> wrote:
Yes. I don't have the workspace handy right now, but I'm pretty sure
one of the plugins in CVS has its own tag library. So try 'find .
-name "*.jelly*"' and I think you'll find it.

A tag library directory needs to contain one place holder file --- I
think it's called "taglib" but not too sure. So maybe you are just
missing that.

In any case I recommend searching our existing plugins.

2007/1/31, Eric Crahen <[hidden email]>:

> I was trying to add some jelly tags for use in my global.jelly,
> config.jelly, etc. files for a plugin and was having some trouble getting it
> working. I started by copying the section.jelly from hudson's /lib/form into
> my plugin under I placed them in src/main/resources/lib/eric. I added
> xmlns:e="/lib/eric" to my jelly tag in config.jelly (which is loaded by with
> the plugin I've made) and added an <e:section title="Hello World"/>. I don't
> get an error, but I also don't get the behavior I expect. The Hello World
> doesn't show up, and when I view the page source with my browser, I just see
> the unmolested <e:section title="Hello World"/> tag, which I'd hoped would
> transformed.
>
> Is it possible to install some jelly tags with a plugin?
>
> --
>
> - Eric


--
--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--

- Eric