must define the range somewhere else as a string, you can use
#evaluate to dynamically interpret the range, but that adds unneeded
complexity.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr
in:
https://github.com/xwiki/xwiki-platform/raw/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/code.vm
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr
/velocity/tools/generic/ConversionTool.html#toInteger%28java.lang.Object%29
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h
.), then shoot the
single doc to another (nonSolr) process for postprocessing. Can I use
Velocity to do this? How? Can Velocity reach back to the Nutch crawl for
the full text of the docs (they don't change often at all)?
Any help would be much appreciated.
--
Sergiu Dumitriu
http://purl.org/net
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
Is there a recommended MIME type that should be used for .vm files? I
found text/velocity on http://www.filesuffix.com/extension/vm.html but
I'd like to get an official opinion.
--
Sergiu Dumitriu
http://purl.org/net/sergiu
. Does a
Java file full of String concatenation, where the strings are XML
markup, warrant an application/xml MIME type just because it has more
than 50% XML in it?
Thanks everyone for your answers.
--
Sergiu Dumitriu
http://purl.org/net/sergiu
. For consistency and a more thorough yet simple
definition of the syntax, all keywords follow these rules.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
, and to foobaryokdar - on 1.5.
String template = #set($global_types=['foo', 'bar', 'yok',
'dar'])#macro( showBox $input)#set($type = \\)$input#end+
#macro(showBoxes $types)#foreach($type in
$types)#showBox($type)#end#end#showBoxes($global_types);
--
Sergiu Dumitriu
http://purl.org
($LabTestType in $LabTestTypeEntry.value)
## $LabTestType is a MyJavaObject from the TreeSet
$LabTestType.labTestTypeCode
## I guess that your MyJavaObject has a getLabTestTypeCode() method
#end
#end
--
Sergiu Dumitriu
http://purl.org/net/sergiu
('Location-FIPSCode')}$!{dsobj.getValue('Device-Instance')}
#end
Output:
! false
hostname stelsewhere99
!
Clearly, the length is more than 8
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail
On 02/12/2013 12:17 PM, ANS Developer Team wrote:
Ah thanks, it's pretty sparse, hence why I'm asking here. Much
appreciated, will figure it out from source.
If you can get your hands on the current VelocityContext, then you could
list all the properties it contains (it extends Map).
On
On 02/21/2013 01:50 PM, Garey Mills wrote:
Hi -
I am trying to user VelocityEngine.
Here is my code:
Properties vp = new Properties();
vp.setProperty(file.resource.loader.path,
templatesDirectory + /);
VelocityEngine ve = new VelocityEngine();
the loop, and #break($foreach) once
the queue is empty:
#foreach($i in [0..10])
#if ($queue.isEmpty())
#break($foreach)
#end
#set ($item = $queue.pop())
## Do stuff with $item
#if (should add more things)
#set ($discard = $queue.add(new things))
#end
#end
--
Sergiu Dumitriu
On 05/24/2013 02:37 PM, ricardo.julio.rodriguez.fernan...@sergas.es wrote:
Hey Sergiu! A big pleasure to meet you here! Thanks for your answer. Please,
see below...
From: Sergiu Dumitriu [sergiu.dumit...@gmail.com]
Sent: 24 May 2013 19:54
To: user
On 05/25/2013 11:39 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote:
I'm really getting mad! :-) Of course I know that the only reason for this is
my lack of skills!!! Catching up...
I do need some kind of security. Please, could you confirm this statement...
Class SortTool can be
On 05/25/2013 11:59 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote:
From: Sergiu Dumitriu [sergiu.dumit...@gmail.com]
Sent: 25 May 2013 17:49
To: Velocity Users List
Subject: Re: On sorting
On 05/25/2013 11:39 AM
for more complicated macros.
I am curious what is the correct way to return values from Velocimacros and
if I can Trim the resulting Whitespace before returning it?
Thank you an advance for any help.
O. O.
--
Sergiu Dumitriu
http://purl.org/net/sergiu
an advance for any help.
O. O.
--
Sergiu Dumitriu
http://purl.org/net/sergiu
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
.
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
--
Sergiu Dumitriu
http://purl.org/net/sergiu
))
[the $bundle object is a List]
#end
But it's kind of verbose, plus I need to check to see if it's an array
as well.
Any suggestions using existing tools?
Thanks,
-chris
--
Sergiu Dumitriu
http://purl.org/net/sergiu
...@velocity.apache.org
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
($referenceThatIsCertainlyNull)
?
I seem to remember there being a helper object (VelocityTool?) that had
nice things in it like $helper.null or something like that, but I can't
seem to find a reference for it.
Thanks,
-chris
--
Sergiu Dumitriu
http://purl.org/net/sergiu
city-eng
>> ine/2.0/release-notes.html
>>
>> Distribution:
>>
>> * https://dist.apache.org/repos/dist/dev/velocity/velocity-engine/2.0/
>>
>> Maven 2 staging repository:
>>
>> * https://repository.apache.org/content/repositories/orgapache
>&g
t; Next line with some text
>
> Best regards,
> Andreas
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
gt;
> 2. I'm going to be consulting it a lot using Set.contains(object) so
> something other than ArrayList/LinkedList will be much faster
>
> Thanks,
> -chris
>>
>> -
>> To unsubscribe, e-mail: user-un
--
> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
> For additional commands, e-mail: user-h...@velocity.apache.org
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu
27 matches
Mail list logo