Skip to content

Conversation

@bertdeblock
Copy link
Owner

@bertdeblock bertdeblock commented Oct 3, 2025

Users can now use custom templates via 1 of 2 options:

  1. Using the templateContent option:
// gember.config.js

export default {
  generators: {
    component: {
      templateContent: '<template>\{{yield}}</template>';
    },
  },
};
  1. Using the templatePath option:
// gember.config.js

export default {
  generators: {
    component: {
      templatePath: './path/to/custom-component-template.gjs';
    },
  },
};

@bertdeblock bertdeblock self-assigned this Oct 3, 2025
@bertdeblock bertdeblock added the enhancement New feature or request label Oct 3, 2025
@bertdeblock bertdeblock force-pushed the template-content-and-template-path-options branch 2 times, most recently from f1de00b to 1d31bb6 Compare October 3, 2025 07:55
@bertdeblock bertdeblock force-pushed the template-content-and-template-path-options branch from 1d31bb6 to 2c3fdf9 Compare October 3, 2025 08:23
@bertdeblock bertdeblock marked this pull request as draft November 18, 2025 09:03
@bertdeblock bertdeblock deleted the template-content-and-template-path-options branch November 18, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants