flyx / emerald

HTML5 templating engine for Nimrod
Do What The F*ck You Want To Public License
95 stars 9 forks source link

Pass template parameters to mixin #23

Open konradmb opened 5 years ago

konradmb commented 5 years ago

Enables passing template parameters to mixins:

import emerald
proc mySection(title: string) {.html_mixin.} =
    section:
        h1: title

proc templ(numItems: int) {.html_templ.} =
  append content:
    html(lang="en"):
        body:
            call_mixin mySection($numItems)
flyx commented 5 years ago

I am long disconnected with this project. I don't really know the code anymore. Accepting PRs now is just lying about being able to maintain this project when in reality I can't.

My plan is to archive this project to make clear it's unmaintained. However, if you want to take over ownership, I can also transfer it to you. Let me know if you're interested.

konradmb commented 5 years ago

I don't really know the code anymore.

Well, so what I can say? :smiley:

However, if you want to take over ownership, I can also transfer it to you. Let me know if you're interested.

I would like to, but I really can't. I have no clue what's going on with the code. You did a great job and I don't want to hijack your project and leave it unmaintained, but I think I will merge the changes to my fork.

Anyway, thanks for emerald, this whole idea of Nim syntax for HTML is a breath of fresh air.

flyx commented 5 years ago

You're welcome :). I'm archiving the project now.