pypugjs icon indicating copy to clipboard operation
pypugjs copied to clipboard

Support for {% with %} extension in jinja

Open sibeduli opened this issue 1 year ago • 1 comments

  • pypugjs version: 5.9.12
  • Django version: -
  • Python version: 3.8.10
  • Operating System: Ubuntu

Description

cannot convert with extension from jinja

PUG File

with message=get_flashed_messages()

Expected Output

{% with messages = get_flashed_messages() %}

Actual Output

<with>message=get_flashed_messages()</with>

sibeduli avatar Dec 24 '23 21:12 sibeduli

Hi @sibeduli , you are welcome to add a pull request for this feature! But in my last years of coding template logic i have very rarely used with and dont see a big need here.

kakulukia avatar Dec 27 '23 14:12 kakulukia