Here is OK, but there is the blojsom-developers list which I
had intended
for more development-related questions.
But, to answer your question, plugins have access to the
context which is
just a HashMap. All the key/value pairs here are made
available to the
templates. So if you did something like:
context.put("SOME_KEY",
"SOME_VALUE");
You'd be able to use the following in your template (e.g.
For Velocity):
The value of SOME_KEY is: $SOME_KEY.
That should print:
The value of SOME_KEY is: SOME_VALUE.
On 11/27/06 12:29 PM, "dan mcginn-combs.org"
<dan mcginn-combs.org> wrote:
> Hmmm... ok, I presume this is a noobee Java question,
but I've searched
> the WIKI and read through the source on some of the
plugins and I'm
> still in the dark.
>
> My helloworld plugin works (by that I mean it doesn't
cause the blog to
> blow up). But what is the secret handshake needed to
provide a return
> value to the template code? Gosh! All I wanted this
first one to do was
> return a simple string for crying out loud!
> Dan
>
> P.S. is this even the right forum for this question?
>
> ---
> Dan McGinn-Combs
> dan mcginn-combs.org
> Peachtree City, GA USA
> +1 770 487 6321
>
>
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys - and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-users lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
--
David Czarnecki
http://www.blojsom.com/b
log/ | http://blojsom.sf.net
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|