MommaWatasu / OteraEngine.jl

This package is a template engine for Julia Lang.
https://mommawatasu.github.io/OteraEngine.jl/stable
MIT License
20 stars 4 forks source link

{{ }} doesn't work #10

Closed edyu closed 1 year ago

edyu commented 1 year ago

I put {{ name }} in the template and made sure to put the following but it doesn't render properly:

current.user.name = 'Test user'
init = Dict("name" => current.user.name, "img" => current.avatar)
return html(tmp(init))

The template renders {{ name }} instead of Test user

MommaWatasu commented 1 year ago

I want you to give me more detail code(especially template) if you don't mind.

edyu commented 1 year ago
<div>
      <div>
          <img draggable="false" class="w-max h-max object-contain" src="{{ img }}" alt="Profile">
      </div>
      <div>
          {{ name }}
      </div>
</div>

edyu commented 1 year ago

Using triple backticks `` \``` works but not{{ }}`

edyu commented 1 year ago

It seems to be working on 2.0 so I'll close it for now.