Skip to content

Convert in-depth topics to use gjs - #2127

Merged
mansona merged 12 commits into
ember-learn:gjsfrom
tcjr:gjs-in-depth
Aug 29, 2025
Merged

mansona merged 12 commits into
ember-learn:gjsfrom
tcjr:gjs-in-depth

Conversation

@tcjr

@tcjr tcjr commented Jul 29, 2025 •

Copy link
Copy Markdown
Contributor

This PR updates the 4 markdown files in the Core Concepts / In-Depth Topics to use gjs.

I tried to limit the changes here to only migrating from js+hbs to gjs. In a few places, some reordering of the prose around the code snippets was unavoidable. Based on the number of changes, I'd recommend going through the rendered docs and see if anything looks awry.

Some notes:

  • Since gjs requires explicit imports, I added imports for things like Input and modifier. But I don't know the imports for the component helper and helper helper, so those should be addressed.
  • In autotracking-in-depth, some of the snippets now have diff indicators where they didn't before.
  • In rendering-values, everything that was just handlebars has been wrapped in <template></template> in a gjs block. Many of these care incomplete however, because they reference stuff that is not in scope. I think this is fine, but maybe somebody else has an opinion on a better way to handle these.

Leaving as a draft until I figure out the imports.

@netlify

netlify Bot commented Jul 29, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for ember-guides ready!

Name Link
🔨 Latest commit f540897
🔍 Latest deploy log https://app.netlify.com/projects/ember-guides/deploys/68926bc5e9394d00086c7006
😎 Deploy Preview https://deploy-preview-2127--ember-guides.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@IgnaceMaes

Copy link
Copy Markdown
Member

@tcjr

tcjr commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

Some of the built-in imports are documented here: https://guides.emberjs.com/release/components/template-tag-format/#toc_importing-built-ins

But not 'component' or 'helper' or 'modifier'.

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

But not 'component' or 'helper' or 'modifier'.

ya, these are built-in keywords

@tcjr

tcjr commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

ya, these are built-in keywords

Oh, nice. I can just delete those TODO placeholders.

@tcjr
tcjr marked this pull request as ready for review July 30, 2025 13:29
@IgnaceMaes

Copy link
Copy Markdown
Member

Would be great to also have those documented as built-in keyword on the template tag page!

@mansona
mansona merged commit 8adf032 into ember-learn:gjs Aug 29, 2025
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.

5 participants