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

Analyze Section: Templates #252

Closed
2 tasks
MelSumner opened this issue Nov 15, 2018 · 4 comments
Closed
2 tasks

Analyze Section: Templates #252

MelSumner opened this issue Nov 15, 2018 · 4 comments

Comments

@MelSumner
Copy link
Member

MelSumner commented Nov 15, 2018

Intro

This is part of a larger project that reviews the guide content to determine what, if any, updates need to be added to the guides as angle bracket and/or template-only components become the standard.

Section to review:

Templates

Primary goals:

  • Review this sub-section: what needs to be updated for the new standards?
  • If analysis reveals that documentation is necessary, create a new issue with those tasks, and comment on this issue, linking to the new issue.
@MelSumner MelSumner added the DecEmber December Hackathon label Nov 15, 2018
@MelSumner MelSumner changed the title Section: Templates Analyze Section: Templates Nov 29, 2018
@cah-danmonroe
Copy link
Contributor

Just a reminder that I have already submitted a PR #292 where I have already converted the 3.6 documentation to angle brackets. I can address further #issues from there.

@locks
Copy link
Contributor

locks commented Dec 12, 2018

Update for Octane layout file paths.
Update for native classes.
Update LinkComponent.

Links

Cover Router helpers.

@MelSumner MelSumner added Octane and removed DecEmber December Hackathon labels Jan 22, 2019
@pzuraq
Copy link
Contributor

pzuraq commented Feb 20, 2019

  • Introduction (PR)
    • Generally needs to be more like Jen's PR 😛
  • Templating Basics
    • "Binding Element Attributes" feels like it should belong here
    • Could be merged into the introduction, or parts of the introduction could be split out into a separate section that focusses just on the templating syntax.
    • Should cover:
      • Template bindings/interpolation
      • Attribute bindings
      • Interpolation within attribute values (e.g. class="foo {{dynamicClass}}")
  • Helpers
    • "Built-in Helpers", "Conditionals", "Displaying a List of Items", and "Displaying the Keys in an Object", and "Writing Helpers" could all be handled better by a single unified helpers section
    • Show be about how to do programming logic in templates
    • Should emphasize that it's not JS in templates, but it does allow you to do as much or as little as you want. Definitely should mention the "logicless-templates" pattern, and compare to "template-heavy" patterns (both are options)
    • Comparisons to Lisp/Clojure?
    • Functional Programming!!!
    • Should cover
      • Built in helpers: each, each-in, if, get, let
      • Writing and using your own helpers
  • Actions
    • Should be updated to use onclick= style actions
    • Should be updated to use the @action decorator instead of the {{action}} helper
    • This still belongs in templating in general, since bound actions need to be assigned to an onclick handler or a modifier to work correctly.
  • Links
    • Update to refer to the link-to component as a helper, I think this will be less confusing than explaining that some components must be invoked using curly syntax.
  • Input Helpers
    • Update to refer to these as components, since they can (and generally should) be invoked with angle bracket syntax now.
    • Update to angle bracket syntax.
  • Development Helpers - stays the same

@MelSumner
Copy link
Member Author

Updated the guide template issue to reflect this analysis. Thank you!! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants