How to override a template?
See original GitHub issueI read the docs but still have no clue what I do to edit for example interfaces generation.
I copied templates/default/*
from the repo into my project templates/*
But in there I don’t see any interface generation. Because it happens in the base/*
. But I didn’t copy base/*
. And if I do, it uses some defaults via @base
… which is not the base/*
that I copied, isn’t it? So how it is assumed to override things from the @base
space?
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
Template structure & Overriding templates via a theme
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file...
Read more >How to override templates - Django documentation
First, we'll explore overriding templates by creating replacement templates in your project's templates directory. ... The TEMPLATES setting and BASE_DIR will ...
Read more >Overriding Templates - SlickRemix
Go to the root of your WordPress via FTP and wp-content > plugins > feed-them-gallery > templates > now select and copy the...
Read more >How to override the template from a theme - WordPress.org
Hi,. I've used a theme name: Yoku and in that theme, there is learnpress folder that I what to override to the child...
Read more >NetSuite Applications Suite - Override a Template File
To customize a template, you must use the override method provided by the SCA developer tools. Because there is no mechanism for overriding...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, @marko-hologram. Thanks for being persistent 😃 Now we know that the problem was actually in bad console feedback.
As docs mention, you just copy individual files, not the whole folder structure. https://github.com/acacode/swagger-typescript-api#--templates
So I can give one example how I did this, but I only updated api client and route names, not others. At the root of my project, this is the folder structure for templates:
And I’ve just added template path to the command I run
npx swagger-typescript-api --templates ./swaggerGenerateTemplates
I’ve omitted other arguments because they are not important here.