JPEWdev / shacl2code

Convert SHACL model to code bindings
MIT License
2 stars 4 forks source link

common: BasicJinjaRender: Move more out of render() #12

Closed JPEWdev closed 4 months ago

JPEWdev commented 4 months ago

Dealing with the model should not be done inside of the render() function, since different implementations may want to do different things with it (e.g. output each class in a separate file).

To accommodate this, move the code that deals with the model setup into output() and render() just focuses on rendering a single template file to an output.

github-actions[bot] commented 4 months ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/shacl2code/lang
  common.py
Project Total  

This report was generated by python-coverage-comment-action