Go Vue Ssr

screenshot of Go Vue Ssr
vue

A precompilation template engine for go, template syntax like vue.

Overview:

Go-vue-ssr is a precompilation template engine for Go that uses a syntax similar to Vue. It aims to provide efficient rendering and elegant template syntax, while also preserving Vue's features such as componentization, custom directives, class and style bindings. This project was created to address performance and aesthetic issues in server-side rendering and is suitable for websites with static content.

Features:

  • Based on string concatenation for rendering Vue components, which improves performance but sacrifices Vue's data binding feature.
  • Supports Vue template syntax including mustache syntax, raw HTML, attributes, custom directives (with some differences from Vue's custom directives), class and style bindings, conditional rendering (v-if, v-else-if, v-else), and list rendering (v-for).
  • Provides fallback content, named slots, scoped slots, and dynamic components.
  • Allows the use of JavaScript expressions within templates.

Summary:

Go-vue-ssr is a precompilation template engine for Go that aims to provide efficient rendering and elegant template syntax similar to Vue. It sacrifices Vue's data binding feature but supports other Vue features such as componentization, custom directives, class and style bindings. It is suitable for websites with static content and offers features like conditional rendering, list rendering, and dynamic components. More information can be found in the official documentation.

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.