Skip to content

Conversation

@chfw
Copy link
Member

@chfw chfw commented Nov 15, 2018

  1. optimize handlebar code where the hbr template can be reused
  2. reuse code in base engine
  3. re-shuffle the code location so that each code finds its own place.

@chfw chfw requested review from PrajwalM2212 and jayvdb November 15, 2018 19:33
@chfw
Copy link
Member Author

chfw commented Nov 15, 2018

@CLiu13 please review.

@codecov-io
Copy link

codecov-io commented Nov 15, 2018

Codecov Report

Merging #129 into dev will decrease coverage by 0.29%.
The diff coverage is 98.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##              dev     #129     +/-   ##
=========================================
- Coverage   98.59%   98.29%   -0.3%     
=========================================
  Files          39       38      -1     
  Lines        1921     1877     -44     
=========================================
- Hits         1894     1845     -49     
- Misses         27       32      +5
Impacted Files Coverage Δ
moban/jinja2/filters/repr.py 100% <ø> (ø)
moban/jinja2/tests/files.py 100% <ø> (ø)
moban/jinja2/filters/github.py 96.96% <ø> (ø)
moban/jinja2/filters/text.py 100% <ø> (ø)
tests/test_template.py 89.47% <100%> (ø) ⬆️
moban/_version.py 100% <100%> (ø) ⬆️
tests/test_engine.py 100% <100%> (ø) ⬆️
tests/test_text_filter.py 100% <100%> (ø) ⬆️
moban/utils.py 98.6% <100%> (ø) ⬆️
tests/test_utils.py 100% <100%> (ø) ⬆️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6de80f2...328a5ae. Read the comment docs.

@chfw chfw merged commit bec2a49 into dev Nov 16, 2018
@chfw chfw deleted the code-refactoring branch November 16, 2018 16:19
ayan-b pushed a commit to ayan-b/moban that referenced this pull request Jan 15, 2019
* 🔨 code refactoring

* 🔨 format code

* 🔨 pump up the version

* 💚 fix the problem with the import. mysteriously, moban.extensions works but relocating it to moban.jinja2.extension wont do

* 🔨 code refactoring

* ✨ code refactoring

* 🔨 code refactoring on jinja2 engine

* 🔨 code refactoring

* 🔨 load handle_bar by default for now

* 💚 include pybars3 as temp requirements to pass unit tests

* 🐛 fix a typo

* 🔨 allow base engine to have constructor that has more shared code

* :tructor: rename engine_factory

* 🔨 code refactor jinja2 engine

* 🔥 remove duplicated find template file

* 🔥 remove useless function

* 🔥 remove logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants