Johan Rylander

2011-12-21

Velocity i Polopoly output templates i IntelliJ

Postat i: java, Polopoly, Programming — Johan Rylander @ 15:08

IntelliJ kan som bekant förstå språk injectade i andra språk såsom t ex att använda regexp i en sträng-parameter till en Java-metod.

För att låta IntelliJ förstå Velocity inuti Polopoly output templates, lägg till en “language injection” under Project Settings->Language Injections och ställ in:

  • ID: VTL
  • Prefix: <![CDATA[
  • Suffix: ]]>
  • Local Name: component
  • Namespace: http://www.polopoly.com/polopoly/cm/app/xml
  • XPath Condition: @group=”output/renderer/selected/default” and @name=”value”

Nu känns Velocity igen som språk:

Kommentera »

Inga kommentarer ännu.

RSS-flöde för kommentarer till det här inlägget. TrackBack URI

Lämna en kommentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Logga ut / Ändra )

Twitter-bild

You are commenting using your Twitter account. Logga ut / Ändra )

Facebook-foto

You are commenting using your Facebook account. Logga ut / Ändra )

Ansluter till %s

Tema: Silver is the New Black. Blogga med WordPress.com.

Follow

Get every new post delivered to your Inbox.