about summary refs log tree commit diff homepage
path: root/utils.jl
blob: c3fa6b178edbd6124ae2227b0066f7958f2626d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function hfun_bar(vname)
  val = Meta.parse(vname[1])
  return round(sqrt(val), digits=2)
end

function hfun_m1fill(vname)
  var = vname[1]
  return pagevar("index", var)
end

function lx_baz(com, _)
  # keep this first line
  brace_content = Franklin.content(com.braces[1]) # input string
  # do whatever you want here
  return uppercase(brace_content)
end