From 5eaf622ac64b471534cef05488dbace1a28a17bd Mon Sep 17 00:00:00 2001 From: ranjanan Date: Wed, 30 May 2018 18:58:37 +0530 Subject: [PATCH] Make it use a global path --- src/Tachyons.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Tachyons.jl b/src/Tachyons.jl index 5977983..f28a907 100644 --- a/src/Tachyons.jl +++ b/src/Tachyons.jl @@ -4,7 +4,11 @@ using WebIO export tachyons_css, @class_str -const tachyons_css = Scope(imports=["/pkg/Tachyons/tachyons.min.css"]) +const path = joinpath(dirname(@__FILE__), "..", "assets", "tachyons.min.css") + +function __init__() + global tachyons_css = Scope(imports=[path]) +end macro class_str(s) :(function (elem)