Mojolic...e::Vuejs(3)
π NAME π
okay bestie, welcome to Mojolicious::Plugin::AssetPack::Pipe::Vuejs (3), straight out of User Contributed Perl Documentation. This one is all about one job: process .vue files. π
Mojolicious::Plugin::AssetPack::Pipe::Vuejsβ process.vuefiles.
π§ DESCRIPTION π§
First thing first: this module is EXPERIMENTAL. It is based on homebrewed regexes instead of running the code through an external nodejs binary! π
also, heads up: this pipe could get pulled completely from the Mojolicious::Plugin::AssetPack distribution if the problem is too hard to solve.
β¨ SYNOPSIS β¨
Currently only script and template are supported. style is not yet supported.
Here is an example .vue file:
<template>
<h1 :id="id">Example</h1>
<button @click="toggle" :disabled="loading">{{loading ? "loading" : "click me!"}}</button>
</template>
<script>
var initial = false;
module.exports = {
data: function() {
return {id: id, loading: initial}
},
methods: {
toggle: function() {
this.loading = !this.loading;
}
}
};
</script>
The .vue file above produces this output:
(function(){
var initial = false;
Vue.component("example", {
data: function() {
return {id: id, loading: initial}
},
methods: {
toggle: function() {
this.loading = !this.loading;
}
},
template: "
Example
{{loading ? \"loading\" : \"click me!\"}}
"})();
π§ METHODS π§
π οΈ process π οΈ
See process in Mojolicious::Plugin::AssetPack::Pipe.
π SEE ALSO π
Go peek at Mojolicious::Plugin::AssetPack.
π«Ά that's the whole page, bestie. it shipped with perl v5.42.0, dated 2024-12-12, and it's filed under Mojolic...e::Vuejs(3). periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious-Plugin-AssetPack 2.150.0-bp160.1.11 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms