Skip to content

Tool for generate go file from vue templates (use for example in gopherjs-vue)

License

Notifications You must be signed in to change notification settings

ekudinov/gvtemplater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gvtemplater

Tool for generation go file from vue templates.

This program is designed to generate a go file from vue templates. The reason for creating this program is to write vue templates with native ide support, and then create from them go file in which the templates are represented as constants and easily included in the program code developed under the library gopherjs-vue https://github.com/oskca/gopherjs-vue. For example, a template named button.vue turns into a constant button = "" etc. And then in the right place this constant can be used for its intended purpose.

Project structure for example before generation:

Alt text

Vue template in IDE:

Alt text

Generated go file:

Alt text

Project structure after generation:

Alt text

At this point, the program checks for duplicate template names, empty templates, and if there are no templates with a .vue extension.

Help options:

Alt text

About

Tool for generate go file from vue templates (use for example in gopherjs-vue)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published