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

Split render #2701

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Split render #2701

wants to merge 4 commits into from

Conversation

hl037
Copy link

@hl037 hl037 commented Jun 19, 2022

What:

Refactoring lib/renderer.js code by splitting the render() code into several smaller functions

Note : this patch includes also #2700 . I can rebase it on dev if I am asked for. But if #2700 is merged, then this one could be merged right after

Why:

Some usages might not need the full compilation process, e.g.: Getting all values defined in a stylus file (and what it @import) only need parsing and evaluation. But the Renderer class does some nice setup and bundles all the compile steps in a neat way

How:

Provide each step as a public method.

Checklist:

  • Documentation
  • Unit Tests
  • Code complete
  • Changelog

Not sure how to change the change logs, I am waiting for comments.

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.

None yet

1 participant