Git Product home page Git Product logo

Comments (1)

adrienbaron avatar adrienbaron commented on May 30, 2024

Hey @kush96 !

What do you mean by parsing Vue files? Basically Vue files group together the behaviour (script), template and styles.

In Vue GWT the behaviour has to be part of the .java file (because of limitation of the Java compiler/APT), and also to be more compatible with existing Java tooling.

This only leaves the template and style bit. Both of them are supported by Vue GWT in the .html file next to the Java class.

The reason we went with .html extension instead of .vue is to avoid IDE trying to understand Vue GWT templates as Vue JS ones (which wouldn't work as the component context is provided by the Java class, so it would basically keep telling you things are invalid).

If you only keep the template bit, then those are basically regular html file, with an optional style element for scoped CSS.

Does that make sense?

from vue-gwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.