Skip to content

feat: CodeBone, LogicsBone, JinjaBone and PythonBone#1668

Open
phorward wants to merge 2 commits into
viur-framework:developfrom
phorward:feat-codebones
Open

feat: CodeBone, LogicsBone, JinjaBone and PythonBone#1668
phorward wants to merge 2 commits into
viur-framework:developfrom
phorward:feat-codebones

Conversation

@phorward
Copy link
Copy Markdown
Member

Introduces a new code.py module with a generic CodeBone (extends RawBone) and three specialized subclasses:

  • LogicsBone (Logics expression validation, Python syntax highlighting),
  • JinjaBone (Jinja2 template validation), and
  • PythonBone (Python syntax validation via ast.parse).

All bones support a validate flag to optionally disable syntax checking, and a syntax parameter for frontend syntax highlighting via the bone type suffix.

Introduces a new `code.py` module with a generic `CodeBone` (extends
`RawBone`) and three specialized subclasses: `LogicsBone` (Logics
expression validation, Python syntax highlighting), `JinjaBone`
(Jinja2 template validation), and `PythonBone` (Python syntax
validation via `ast.parse`). All bones support a `validate` flag to
optionally disable syntax checking, and a `syntax` parameter for
frontend syntax highlighting via the bone type suffix.
@phorward phorward added this to the ViUR-core v3.9 milestone Apr 17, 2026
@phorward phorward added the feature New feature or request label Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant