KeevaKeeva is a template language that allows the creation of complex templates to use with any language you desire. To use this extension please follow these steps. Initiate Keeva.Go to the desired project and initiate using the command "Keeva init". Press This will create a Create a templateGo to the Inside it create a This extension comes with syntax highlighting for .kva (keeva) files; On your
The Register the template typeOn your
Now Keeva will know where to look for your new components templates. Use your templateRight click on the folder you wish your template files to be created at and chose the option Vscode will prompt you what kind of template you wish to create. After you chose 'My Component' it will prompt you to add the variables to be used, in this case a string like this:
Keeva will create a
Kebab caseKeeva has a built in function to change from camelCase to kebab style case. It will transform a variable like To use this use the notation in the previous example, if we had our .kva content like:
And used the
Variable names can be used on dir namesSay you want to have a more complex template with different files and dir. Lets edit the
When we use the the following structure will be created:
You can have as many folder levels inside your template. If the folder doesn't exist, keeva will create it, if it does exist keeva will add the files to the existing folder. |