From 4efd9df02983d28b532eaa5dd8c16b26fa0025e3 Mon Sep 17 00:00:00 2001 From: ranjanan Date: Wed, 20 Jun 2018 15:20:22 +0530 Subject: [PATCH] Make vue path a const global path --- src/Vue.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Vue.jl b/src/Vue.jl index c833a7b..c6e216b 100644 --- a/src/Vue.jl +++ b/src/Vue.jl @@ -4,6 +4,8 @@ using WebIO, JSExpr export vue, Observable, on, @js, @js_str, @dom_str +const vue_js = joinpath(Pkg.dir("Vue"), "assets", "vue.js") + """ `vue(template, data=Dict(); kwargs...)` @@ -34,7 +36,7 @@ function vue(template, data=Dict(); kwargs...) # WebIO.showcbs[n], once the element id is known. This allows re-displaying # a Component with a new element/widget id id = WebIO.newid("vue-component") - widget = Scope(id; imports=Any["vue" => "/pkg/Vue/vue.js"]) + widget = Scope(id; imports=Any["vue" => vue_js]) widget.dom = template watches = Dict()