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

Tilt cache #470

Merged
merged 2 commits into from Apr 27, 2018
Merged

Tilt cache #470

merged 2 commits into from Apr 27, 2018

Conversation

Scharrels
Copy link
Contributor

Use Tilt::Cache instead of our own cache implementation

Tilt::Cache does exactly the same. Using that one cleans up our code significantly.

Tilt::Cache is a generic key-value store. This works exactly the
same, if we move some code around.
The find loop is necessary to find out which prefix contains the
template that we are looking for.

Template parsing happens for the first template that is found.

If we split the file lookup and template building, the code becomes
easier to read and easier to maintain.
@timoschilling timoschilling merged commit 1e4ec99 into trailblazer:master Apr 27, 2018
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.

2 participants