Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for jinja templates #16

Open
rakhinskiy opened this issue May 24, 2023 · 1 comment
Open

Add support for jinja templates #16

rakhinskiy opened this issue May 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@rakhinskiy
Copy link

Is your feature request related to a problem? Please describe.

Can't combine jinja template with rpm spec plugins

Describe the solution you'd like

Jinja 2 template plugin in PyCharm can be used with "Template data language"
I wan't to combine jinja and rpm specs, but when a use for example
%global version {{ pkg_version }}
I receive error from plugin

RpmSpecTokenType.%, RpmSpecTokenType.%%, RpmSpecTokenType.(, RpmSpecTokenType.), RpmSpecTokenType.-, RpmSpecTokenType.:, RpmSpecTokenType.<, RpmSpecTokenType.>, RpmSpecTokenType.BOOL_LITERAL, RpmSpecTokenType.CODE, RpmSpecTokenType.FLOAT_LITERAL, RpmSpecTokenType.IDENTIFIER, RpmSpecTokenType.INTEGER_LITERAL, RpmSpecTokenType.\ or RpmSpecTokenType.{ expected

Can you add support for jinja like #5
Or maybe exclude {{ }} from errors

Describe alternatives you've considered

No response

Additional context

No response

@rakhinskiy rakhinskiy added the enhancement New feature or request label May 24, 2023
@dvershinin
Copy link

+1. This would be very handy for templated .spec files. I use such template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants