书栈网 · BookStack 本次搜索耗时 0.016 秒,为您找到 10 个相关结果.
  • Vugu Files

    790 2019-07-21 《Vugu Document》
    Vugu files have three sections: Markup, Style and Code Markup is the HTML element which is the display portion of your file. More often than not it is a simple div tag, such as:...
  • What is Vugu?

    1028 2019-07-21 《Vugu Document》
    Vugu is Go library which makes it easy to write web user interfaces in Go. The basic idea is as follows: You write UI components in .vugu files . These files are similar to UI ...
  • Getting Started

    728 2019-07-21 《Vugu Document》
    Let's make a basic working Vugu application that runs in your browser. It only takes three small files to start. Make sure you have at least Go 1.12 installed. Create a new ...
  • Program Structure

    874 2019-07-21 《Vugu Document》
    WebAssembly main() Root Component JSEnv Render Loop Important Note The Dual-Build Approach Vugu takes a number of steps to make the development process easy to rapidly get s...
  • Building and Distribution

    953 2019-07-21 《Vugu Document》
    Adding a Server Making dist.go The development setup described in Getting Started is a great way to get going with Vugu. But when you're ready to move your application to a sta...
  • Using Components

    874 2019-07-21 《Vugu Document》
    Note Components are individual files which are used to organize your user interface code. Each component lives in a .vugu file. Each .vugu file is processed to produce a .go fil...
  • Markup (HTML/Go)

    1045 2019-07-21 《Vugu Document》
    Tip Conditionals with vg-if Loops with vg-for Raw HTML with vg-html Dynamic Attributes with : DOM Events with @ Special Variable Names The Markup section is an element whic...
  • DOM Events

    696 2019-07-21 《Vugu Document》
    Important Using the browser's Document Object Model (DOM) , events can be attached to HTML elements by providing an attribute of the event name prefixed with @ . For example <di...
  • Code (Go)

    1178 2019-07-21 《Vugu Document》
    Tip: Script Tag Alternative Go code can be included in your component with in a <script type="application/x-go"> tag. This code is copied from your .vugu file into the resulting...
  • Styles (CSS)

    903 2019-07-21 《Vugu Document》
    Style blocks are simply a way to express CSS that corresponds to your component and is output along with your component markup. Example: <div class = "some-component-here" > ...