Questions tagged [pebble]

Pebble is a lightweight, open source, Java EE template engine.

Pebble is a java template engine inspired by Twig. It separates itself from the crowd with it's inheritance feature and it's easy-to-read syntax. It ships with built-in auto-escaping for security, and it includes integrated support for internationalization.

40 questions
0
votes
2 answers

How to pass a list of maps to pebble template in Gatling?

There is an official documentation of Pebble templating in Gatling: https://gatling.io/2018/11/06/gatling-3-pebble-templating/ In the end of this you can see the code: {% for child in children %} { "id": {{child.id}}, "name":…
Mitsuder
  • 13
  • 3
0
votes
1 answer

How can I render all the values of each jsonObject in a jsonArray with Pebble templetes engine and Java with vertx library?

This is my template : {% for dataFilm in film %} {{Date}} {{Title}} {{MainActor}} …
mononoke83
  • 342
  • 2
  • 16
0
votes
1 answer

Insert template located anywhere in filesystem in Pebble template

I have a Spring Boot Java Web application. The application can generate web pages using Pebble. All resources used by Pebble are located in application.war\WEB-INF\classes. Then, in the Pebble engine gets the template. In this template, I need to…
Michel L
  • 456
  • 7
  • 19
0
votes
2 answers

How can I detect the last item in a for loop in a Pebble Template?

How can I detect the last item in a list in a for loop in a Pebble Template (http://www.mitchellbosecke.com/pebble/home)? I am using Pebble to generate JSON. I have a list of objects that I need to iterate over and I need to include a comma after…
Nathan Ward
  • 560
  • 5
  • 16
0
votes
1 answer

Using Pebble template engine with Spring Boot

So I'm trying to integrate Pebble templating engine to my spring boot application but I'm confused on how to implement this. So I've read through their site on how to implement it however it says for Spring MVC which I think not similar with Spring…
Ricardo Raz
  • 493
  • 1
  • 10
  • 23
0
votes
1 answer

Pebble App is not compiling to due image menu icon

This is my first pebble app that i am writing using the nextbus api to create a bus time app for pebble. when i hit compile i am hit with an error message of "menuIcon resource 'IMAGE_MENU_ICON' exceeds the maximum allowed dimensions of (25, 25)". I…
0
votes
1 answer

Pebble Engine JRE version mismatch

My team is using Pebble template engine for preparing messages. We have done lot of POC on this and everything looks good in our side. We decided to implement that. Now problem we see here is we are having JRE1.6 in our application servers but…
suresh
  • 341
  • 2
  • 3
  • 13
0
votes
2 answers

Template framework benchmark

I have a requirement to prepare message from the predefined template, System which we are going to build will prepare 100 messages in a second. So i have written a program to build 1000 messages sequentially with multiple template framework…
suresh
  • 341
  • 2
  • 3
  • 13
0
votes
1 answer

Spark-java 2.5 & Pebble - always Internal Server Error

When I follow the tutorial for using Pebble with Spark-Java framework 2.5, I just get an Internal Server Error with no stack crawl. I can get Freemarker working, and Velocity as well - but not Pebble which is of course the one I want to use. I tried…
GeorgeS
  • 1
  • 1
-1
votes
1 answer

Unexpected tag name "closure"

I keep getting an error for the following bit of code. I am using a Twig file which extends a base template. The error I get is the following: The character encoding of the plain text document was not declared. The document will render with garbled…
c.s_._._
  • 63
  • 10
1 2
3