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

Overwork content merge #36

Merged
merged 8 commits into from
Dec 9, 2016
Merged

Overwork content merge #36

merged 8 commits into from
Dec 9, 2016

Conversation

smancke
Copy link

@smancke smancke commented Nov 28, 2016

Fetch Definitions now have a name, so that a fragment now can have a name of the form
page#fragment. The templating now starts with the 'layout' page.
Also I had to do some refactorings to do that.

I still have to do some documentation task, but please start reviewing.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 93.01% when pulling 96b56c3 on overwork-content-merge into 5ddf18b on master.

@smancke
Copy link
Author

smancke commented Dec 6, 2016

@yneuma, @domano, @mgrgic, @deberth
Could you please review and approve the PR?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 93.061% when pulling 5e1aaff on overwork-content-merge into 5ddf18b on master.

Copy link
Contributor

@domano domano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No major blockers, but i do not like the //TODO comment. All in all the code is better now than it was before :)

f, found := cntx.Body[name]

// Normalize main# as main
if !found && strings.HasSuffix(name, "#") {
Copy link
Contributor

@domano domano Dec 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "#" should be configurable or at least declared at the top because it is used more than once. ("magic string")

}
func (cntx *ContentMerge) addBody(c Content) {

for loalName, f := range c.Body() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loalName -> localName

if strings.HasPrefix(placeholder, "#") {
placeholder = placeholder[1:]
}
// TODO !!!!!!! How to handle the has in name resolving???
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should a //TODO be merged into the master? Maybe you just forgot about it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 93.061% when pulling 5cdf03d on overwork-content-merge into 5ddf18b on master.

Resolved conflicts in test files.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 93.105% when pulling a52ae82 on overwork-content-merge into 04a1ee5 on master.

@smancke smancke merged commit 43aade2 into master Dec 9, 2016
@smancke smancke deleted the overwork-content-merge branch December 9, 2016 17:08
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.

6 participants