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

Support dynamic template name in partial #350

Merged
merged 2 commits into from
Oct 25, 2013
Merged

Conversation

johnsonlei
Copy link

  • Bump the package number to 2.1.0
  • Change to support dynamic template name in partial
    e.g. {>"{dynamic_template}"/}

- Change to support dynamic template name in partial for @i18n helper
  e.g. {>"{dynamic_template}"/}
@rragan
Copy link
Contributor

rragan commented Oct 17, 2013

Does this have a backward compatibility issue? I see you are bumping the 2nd digit. If so, what is the issue?

@prashn64
Copy link
Contributor

@rragan We planned on batching this commit with some bigger changes. If you disagree, we can just bump the 3rd digit instead for this commit.

@rragan
Copy link
Contributor

rragan commented Oct 21, 2013

No, problem. Just wanted to make sure there was no hidden incompatibility in this particular change.

// templateName can be static (string) or dynamic (function)
// e.g. {>"static_template"/}
// {>"{dynamic_template}"/}
if (elem) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a unit test for this in test/jasmine-test/spec/coreTests.js

Copy link
Contributor

Choose a reason for hiding this comment

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

Ignore this comment, that unit test already exists.

prashn64 added a commit that referenced this pull request Oct 25, 2013
Support dynamic template names for the context's template name.
@prashn64 prashn64 merged commit 9bfe563 into linkedin:master Oct 25, 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.

3 participants