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

Bug fixes for partial views #1606

Merged
merged 1 commit into from Dec 12, 2013
Merged

Bug fixes for partial views #1606

merged 1 commit into from Dec 12, 2013

Conversation

gotvitch
Copy link
Contributor

@gotvitch gotvitch commented Dec 1, 2013

closes #1203

  • Update express-hbs module to the new version (0.5.2)
  • Use two instances of express-hbs one for the theme and an other for the admin
  • Template helpers are register as partial view
  • Partial views of the theme are reload when the theme changed

@gotvitch
Copy link
Contributor Author

gotvitch commented Dec 1, 2013

There are two points where I wonder about my implementation :

  • The way to expose different instances of express-hbs
  • The update of tests

So do not hesitate to propose other solutions 😉

@gotvitch
Copy link
Contributor Author

gotvitch commented Dec 2, 2013

I don't understand why the build fail, because all tests were passed without errors on my side...

@halfdan
Copy link
Contributor

halfdan commented Dec 2, 2013

Haven't looked at the changes, but I can confirm that the tests for this PR run perfectly fine locally.

@halfdan halfdan mentioned this pull request Dec 2, 2013
@ErisDS
Copy link
Member

ErisDS commented Dec 4, 2013

Tests have now got a workaround in place, hopefully a rebase will mean travis will pass :)

@gotvitch
Copy link
Contributor Author

gotvitch commented Dec 6, 2013

@ErisDS I think it's ok, I made the rebase (I am not an expert on git, so if something is wrong, tell me).
The tests success except for postgres and I really don't know why.

@gotvitch
Copy link
Contributor Author

gotvitch commented Dec 7, 2013

Absolutely it was a mistake, I just fix it.

@ErisDS
Copy link
Member

ErisDS commented Dec 8, 2013

So before this PR gets merged it needs to be squashed (instructions here) but I'm afraid that it may also need a bit of a rebase / rework because of other things that have been merged.

Hopefully though, it may make more sense to hook this up once ghost.js is dead?

@sebgie
Copy link
Contributor

sebgie commented Dec 12, 2013

@gotvitch I'm working on issue #1640 that would require frontend/backend express-hbs instances. Would you mind taking a second look at the PR and clean the history? Thank you!

closes TryGhost#1203
- Update express-hbs module to the new version (0.5.2)
- Use two instance of hbs one for the theme and an other for the admin
- Template helpers are register as partial view
- Partial views of the theme are reload when the theme changed

Remove clear partial cache in handlebars

This code will be move in `express-hbs`.
This doesn't cause a problem to remove this line but it is not clean.

Remove unused hbs instance

Resolve conflict
@gotvitch
Copy link
Contributor Author

@ErisDS I think now it's ok, I rebase my PR and clean it in one commit.

@ErisDS
Copy link
Member

ErisDS commented Dec 12, 2013

This all seems to be working, partials in production mode and everything exciting

ErisDS added a commit that referenced this pull request Dec 12, 2013
Bug fixes for partial views
@ErisDS ErisDS merged commit 968176c into TryGhost:master Dec 12, 2013
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.

partials not cleared on theme switch
4 participants