Title: Customize templates using EJS exclusively. · Issue #233 · sourcejs/Source · GitHub
Open Graph Title: Customize templates using EJS exclusively. · Issue #233 · sourcejs/Source
X Title: Customize templates using EJS exclusively. · Issue #233 · sourcejs/Source
Description: In Core we should try to unify where templates are and how they can be overridden. Currently this is how a user must override the 'Navigation markup' (at least according to the docs): module.exports = { core: { ... }, assets: { ... modul...
Open Graph Description: In Core we should try to unify where templates are and how they can be overridden. Currently this is how a user must override the 'Navigation markup' (at least according to the docs): module.export...
X Description: In Core we should try to unify where templates are and how they can be overridden. Currently this is how a user must override the 'Navigation markup' (at least according to the docs): modul...
Opengraph URL: https://github.com/sourcejs/Source/issues/233
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Customize templates using EJS exclusively.","articleBody":"In Core we should try to unify where templates are and how they can be overridden.\n\nCurrently this is how a user must override the 'Navigation markup' (at least according to the docs):\n\n``` js\nmodule.exports = {\n core: { ... },\n assets: {\n ...\n moduleOptions: {\n globalNav: {\n templates: {\n catalogHeader: _.template('\u003ch2 class=\"custom-class\"><%= catalogMeta.title %>\u003c/h2>'),\n }\n }\n }\n }\n}\n```\n\nIt should be a possible to just drop a .ejs file in some folder.\n\nThis brings me to the second example where we should unify our interface:\n\n`/core/views/` contain .ejs files\n`/assets/templates/` contain .html files (with ejs bindings)\n\nI suggest we move all html-like files to a folder named `/core/templates/`.\n\nWe can group certain templates together, for example all _page-templates_ can go into `/core/templates/page/`. etc.\n","author":{"url":"https://github.com/ndelangen","@type":"Person","name":"ndelangen"},"datePublished":"2016-06-16T12:12:23Z","url":"https://github.com/sourcejs/Source/issues/233"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fedbb170-1a07-5028-bda5-be390f8a612a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 808A:AE1F3:8674CF:BCE7B3:6AFB6DCC |
| html-safe-nonce | 6c846e31ebc56cc0b1477d9088060101e61464be17e916968cd2b7119e691e0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDhBOkFFMUYzOjg2NzRDRjpCQ0U3QjM6NkFGQjZEQ0MiLCJ2aXNpdG9yX2lkIjoiODk5NTQ0MzM4MTI5MDg4ODY1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e0c546718bf716b31b79fe97670ccd3a609802c2a87b109e2216038782549b0d |
| hovercard-subject-tag | issue:160646646 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sourcejs/Source/233/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55a08376c16d5b36936754f37d485e0664b56ea79b6eaaf974be64f9f697a35e/sourcejs/Source/issues/233 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55a08376c16d5b36936754f37d485e0664b56ea79b6eaaf974be64f9f697a35e/sourcejs/Source/issues/233 |
| og:image:alt | In Core we should try to unify where templates are and how they can be overridden. Currently this is how a user must override the 'Navigation markup' (at least according to the docs): module.export... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ndelangen |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/sourcejs/Source git https://github.com/sourcejs/Source.git |
| octolytics-dimension-user_id | 3853046 |
| octolytics-dimension-user_login | sourcejs |
| octolytics-dimension-repository_id | 9578262 |
| octolytics-dimension-repository_nwo | sourcejs/Source |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9578262 |
| octolytics-dimension-repository_network_root_nwo | sourcejs/Source |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width