You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> s ="""
@def a = Dict(
:x => 1,
:y => 2,
:z => 3)
A""" |> fd2html
"<p>A</p>\n"
julia> s ="""
@def a = Dict(
:x => (1,2,3),
:y => (1,2,3))
A""" |> fd2html
"<p>A</p>\n"
julia> s ="""
@def a = Dict(
:a => (
a = 5,
b = 7,
c = 10),
:b => (
a = 5,
b = 6,
c = 1))
A""" |> fd2html
Fails:
julia> s ="""
@def i18n = Dict(
:download => (
en="Download",
cn="下载",
fr="Téléchargement",
),
:documentation => (
en="Documentation",
cn="文档",
fr="Documentation",
),
:blog => (
en="Blog",
cn="博客",
fr="Blog",
),
:edit_on_github => (
en="Edit this page on GitHub",
cn="在GitHub上编辑",
fr="Editer cette page sur GitHub",
),
)
A""" |> fd2html
ERROR: Franklin.PageVariableError("An error (of type 'ErrorException') occurred when trying to evaluate '\$(Expr(:incomplete, \"incomplete: premature end of input\"))' in a page variable assignment.")
I'm not quite sure when it starts to break; must be a thing with Meta.parse. Note that in the case above, one can always have a julia file with the script and do something like
@def i18n = (include("i18.jl"); i18n)
the advantage being that it always works and also that for big variable it's much better to do that bc you can test the variable in the julia script more easily.
The text was updated successfully, but these errors were encountered:
* closes#530
* closes#495
* closes#512
* whitespace
* closes#514
* closes#494 by modifying the python script a touch
* small fix
* small fix
* finally ok
* some more silliness
* closes#505
* fixing a few last things
Works:
Fails:
I'm not quite sure when it starts to break; must be a thing with Meta.parse. Note that in the case above, one can always have a julia file with the script and do something like
the advantage being that it always works and also that for big variable it's much better to do that bc you can test the variable in the julia script more easily.
The text was updated successfully, but these errors were encountered: