1 <!--<template :src="require(`@/rules/${vname}/${st.lang}.pug`)">
6 .section-content(v-html="content")
10 import Diagrammer from "@/components/Diagrammer";
11 import { store } from "@/store";
13 name: "my-variant-rules",
26 this.loadVariantFile();
30 loadVariantFile: function() {
31 if (this.vname != "_unknown")
33 // TODO (to understand): no loader required here ? Pug preset ?
34 const content = require("raw-loader!@/rules/" + this.vname + "/" + this.st.lang + ".pug");
36 this.content = content;
41 this.loadVariantFile();
47 TODO: template + script dans rules/Alice/en.pug (-> .vue), puis dynamic import ici ?!