Thomas Schühly

Results 78 comments of Thomas Schühly

Hey @casid, Moritz waits for feedback from you. Would be awesome if you could approve the integration!

Still would be nice in 2025! EDIT: This is possible using JUNIT 5 Testwatchers. Here's an example in Kotlin ``` class PlaywrightDebugExtension : TestWatcher { override fun testSuccessful(context: ExtensionContext) {...

@NickLammerskitten @jan-tennert Same here I get this issue when upgrading. It happens when logging in: https://github.com/tschuehly/htmx-supabase-spring-boot-starter/blob/9ab3a5c3236fec8e02b98f7198384447ceb1f8cd/src/main/kotlin/de/tschuehly/htmx/spring/supabase/auth/service/SupabaseUserService.kt#L74

But I want it to be escaped? I just want it to be escaped correctly. If the same code was in an onClick expression it would be escaped properly.

> Hm, the whole idea of output escaping in jte is, that the user does not need to do it manually. So adding a new keyword to escape JS really...

Similar thing like here: https://github.com/casid/jte/issues/326 Instead of the user having to configure a custom policy or using unsafe, there could be $attr{} that knows how to properly escape a whole...

Well for example $attr{} would have two parameters. ``` ${"hx-on:" + eventName, "executeFunction()"} ``` The attributes which are in the html standard are safe. Currently everything that doesn't start with...

But the problem with the solution is not that it is not safe but it is not smart enough to know about other custom elements and thereby doesn't choose the...

> If the attribute value is null, it will be omitted, hope that helps. Yes I know that but I would need to put the if else in a ternary...

> @tschuehly this is because jte by default only allows writing into safe slots of a template. The parser expects to find an attribute name within this div. This needs...