Comments (3)
This is not a CLI option because templates are based in directories, not files. What you see in the package is a handy method for when you want to generate a single file. Not sure if it could be somehow used from the CLI. Ideas?
from generator.
Thanks. I was speaking about the options.file
, which is described as "Path to the file you want to generate".
I was thinking that I could set it to "something.md" and once I run ag -o ./docs asyncapi.yaml markdown
I'd get something.md
instead of asyncapi.md
. Probably I misunderstood the whole "as a module" section. Is there an easy way to implement what I described? Otherwise I'm fine with just renaming the files in CI.
from generator.
Oh, I understand. What you described is not what is offered as a module. options.file
is the entry point for the template compilation. This is for templates to have multiple subtemplates. For instance, the HTML docs template has 2 versions: one with sidebar menu and one without it.
The problem with implementing what you want is that templates might result in many files (e.g. code generation), not just a single one. If you have an idea on how to make it possible, I'm all ears :)
from generator.
Related Issues (20)
- Blank page when generating html doc HOT 6
- Installing 'source-map-support' package results in wrong call stack HOT 1
- AsyncAPi to MD - TypeError: message.messageId is not a function HOT 2
- Shared avro model results in incorrect AsyncAPI document HOT 4
- Path contains invalid characters HOT 3
- Bug: Need to perform the testing in the exlusive env. HOT 1
- Bug: Need to perform exclusive testing in generator HOT 1
- Improve arborist (npm installation) to have no hacks HOT 4
- Allow $$operation$$ file template HOT 2
- `noOverwriteGlobs` will not work in majority of cases in templates using react HOT 10
- Proposal for mentorship of potential maintainers of generator -> `Becoming a Maintainer of AsyncAPI Generator` HOT 22
- [BUG] Demo from homepage does not work HOT 9
- Need to add proper options to generate the template from private registory using CLI HOT 2
- Allowing Generator to pull the templates from the private GitHub Repository HOT 1
- [Docs Bug 🐞 report]: The `template-constant` link is broken at the generator docs HOT 6
- [Docs Bug 🐞 report]: The `AsyncAPI document` button is broken at the generator docs HOT 3
- [📑 Docs]: Improve documentation related to `File templates` feature HOT 8
- `conditionalFiles` feature is broken when template uses `server` special parameter HOT 1
- Incoming changes for generator HOT 3
- Support platform generator type templates to infrastructure as code HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator.