Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 30 2020 05:35
    decebals commented #575
  • Dec 30 2020 05:21
    decebals commented #575
  • Dec 30 2020 05:08
    decebals commented #573
  • Dec 29 2020 12:40
    mhagnumdw opened #575
  • Dec 21 2020 17:23
    coveralls commented #574
  • Dec 21 2020 16:35

    dependabot[bot] on maven

    (compare)

  • Dec 21 2020 16:35
    dependabot[bot] closed #570
  • Dec 21 2020 16:35
    dependabot[bot] commented #570
  • Dec 21 2020 16:35
    dependabot[bot] labeled #574
  • Dec 21 2020 16:35
    dependabot[bot] opened #574
  • Dec 21 2020 16:35

    dependabot[bot] on maven

    Bump xstream in /pippo-content-… (compare)

  • Dec 09 2020 14:47
    deepakmn opened #573
  • Dec 02 2020 20:24
    coveralls commented #572
  • Dec 02 2020 18:29
    dependabot[bot] labeled #572
  • Dec 02 2020 18:28
    dependabot[bot] opened #572
  • Dec 02 2020 18:28

    dependabot[bot] on maven

    Bump jetty.version in /pippo-se… (compare)

  • Nov 20 2020 16:38
    decebals commented #571
  • Nov 20 2020 16:29
    decebals labeled #571
  • Nov 20 2020 16:29
    decebals opened #571
  • Nov 16 2020 21:22
    coveralls commented #570
Adam Brown
@Wavesonics
In JSASS wants relative paths most of the time, and in their demo, they use the Servlet context to get an absolute path to the resources directory, then they "relativize" their individual resource paths using that
I was wondering if Pippo has something similar, a way to get a path to the root resources directory
Decebal Suiu
@decebals
Yes we have
Take a look at Request and Router
In Request you have getContextPath, getApplicationPath, getPath
In Router you have getContextPath, uriFor, getApplicationPath
Decebal Suiu
@decebals
Also, take a look at current SassResourceHandler
Adam Brown
@Wavesonics
Great thanks
Kiru
@kiru
Is there a way to provide own settings? ( e.g. not to put settings in application.properties but use a custom class which loads the settings for example from a database)
Kiru
@kiru
Another question: The default extension for Freemarker template is "ftl", but I think it should be "ftlh"; Because the default configuration for Freemarker enables html-escaping for "ftlh" ( https://freemarker.apache.org/docs/dgui_quickstart_template.html#dgui_quickstart_template_autoescaping ). What do you think?
Decebal Suiu
@decebals

Is there a way to provide own settings? ( e.g. not to put settings in application.properties but use a custom class which loads the settings for example from a database)

No. You can create an issue to see if we can find a solution.

Decebal Suiu
@decebals

Another question: The default extension for Freemarker template is "ftl", but I think it should be "ftlh"; Because the default configuration for Freemarker enables html-escaping for "ftlh" ( https://freemarker.apache.org/docs/dgui_quickstart_template.html#dgui_quickstart_template_autoescaping ). What do you think?

I use Pebble in my projects. If you use Freemarker in your projects, please create a PR with this modification (eventually update freemarker version if you think that is valuable). You can switch very easy the extension for the Freemarker templates in your project if you want (TemplateEngine.setFileExtension).

Decebal Suiu
@decebals
The fast mode to change templates' extension is via template.extension settings (application.properties)
Kiru
@kiru
@decebals Thank you, I'll do that

Another question: The default extension for Freemarker template is "ftl", but I think it should be "ftlh"; Because the default configuration for Freemarker enables html-escaping for "ftlh" ( https://freemarker.apache.org/docs/dgui_quickstart_template.html#dgui_quickstart_template_autoescaping ). What do you think?

I use Pebble in my projects. If you use Freemarker in your projects, please create a PR with this modification (eventually update freemarker version if you think that is valuable). You can switch very easy the extension for the Freemarker templates in your project if you want (TemplateEngine.setFileExtension).

This is what I did now, but I was thinking it might be a better solution to enable auto-escaping by default.

Kiru
@kiru

On the filters: (http://www.pippo.ro/doc/filters.html)

Note: If you want to add a filter for all routes you MUST use /. and NOT /:
Can you explain when "/*" does make sense?

I spent some time to figure out that my CSRFHandler didn't work because I used / and not /.
"/*" and not "/.*"
Marwan Rabbâa
@waghanza
Hi,
I want to introduce pippo in the-benchmarker/web-frameworks#1373 (a benchmarking project)
anyone wants to give a try ?
Decebal Suiu
@decebals
Pippo was not created with speed in mind. Speed is more than decent. There are other features that recommend this micro web framework.
Marwan Rabbâa
@waghanza
In deed @decebals. We are actually targeting performance as the first indicator, but there will be other (resource consumption, build time ...). Do you consent that I add pippo on this list ?
Decebal Suiu
@decebals
Do you consent that I add pippo on this list ?
Yes. No problem.
Marwan Rabbâa
@waghanza
:heart:
Decebal Suiu
@decebals
You're welcome :smile:
mhagnumdw
@mhagnumdw
Hi @decebals !
My first time around here :) Do you know why the status of Travis builds no longer appears in the MR or commits checks? If you have a direction I can try to see.
Decebal Suiu
@decebals
Hello. What you see about a new release? Do you want to add other issues to be available in the coming release?
Decebal Suiu
@decebals
Version 1.13.0 is available
Adrian Lazar
@AditoMaldito_gitlab
Hey @decebals , after checking the matilda example application, I've noticed the use of dada library. Do you still use it in your other projects? Or do you use something else for handling the data?
Decebal Suiu
@decebals
Hi @AditoMaldito_gitlab. I added a comment on decebals/dada#2
Decebal Suiu
@decebals
By the way, if someone is interested for a project based collaboration, project based on Pippo, Pebble, Spring as DI, ReQuery (or JooQ) please let me know
My email address is available on my GitHub profile page
Adrian Lazar
@AditoMaldito_gitlab
Hi @decebals, what do you use for handling the data in your current PIPPO projects?
Decebal Suiu
@decebals

Hi @decebals, what do you use for handling the data in your current PIPPO projects?

ReQuery or JooQ. Dada is good as abstraction layer because you can start with a storage very light as CSV files and switch anytime to others (more complicated)

I think it's a matter of choice
Adrian Lazar
@AditoMaldito_gitlab
Thanks! I'll check them out! Maybe in the end I'll still develop that mongodb module
mhagnumdw
@mhagnumdw

Hi @decebals ! I ended up making a mistake in the message of this commit: pippo-java/pippo@f6a2993

Sorry! It would be nice if it didn't have the prefix "Issue # 537 -"

Do we leave it like this or can you adjust it?

Decebal Suiu
@decebals
@mhagnumdw No problem. We will leave him like that
mhagnumdw
@mhagnumdw

@mhagnumdw No problem. We will leave him like that

👍

mhagnumdw
@mhagnumdw
Can anyone tell me if it is possible for me to reference in my pom.xml the version of Google Guice defined here?
Decebal Suiu
@decebals

Can anyone tell me if it is possible for me to reference in my pom.xml the version of Google Guice defined here?

I don't think that is possible. It's not very clear for me what you try to achieve

If you use pippo-guice then Guice (the version specified in the pom.xml of pippo-guice module) will be available in your project
Decebal Suiu
@decebals
If your intention is to use a specified version of Guice, I think that it's enough to add that version in your project (maybe to exclude Guice when you add pippo-guice as dependency for your project)
mhagnumdw
@mhagnumdw
I make use of guice-persist, guice-assistedinject and guice-multibindings, and I would like to keep their version synchronized with the version of guice brought by pippo-guice.
Decebal Suiu
@decebals
I think that Guice version used in pippo-guice module of Pippo doesn't matter
In pippo-guice we use only a tiny part of Guice
So, in the end you can use what Guice version you want in your project
If you encounter problems, you can submit a PR that updates Guice version in pippo-guice
mhagnumdw
@mhagnumdw
Everything is fine with Pippo.
I don't want to declare the version of Guice in my project because I want to use the version brought by pippo-guice. In the meantime I will continue to do as I currently do: I set the google.guice.version property in my pom.xml equal to the version of the guice brought by the pippo-guice. So when I update Pippo I have to remember to update, if applicable, that property.