Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

if statement is not working in template #8

Open
surfinzap opened this issue Feb 10, 2014 · 1 comment
Open

if statement is not working in template #8

surfinzap opened this issue Feb 10, 2014 · 1 comment

Comments

@surfinzap
Copy link

if i got template like:

if @session.user_id == @user.id:

  • @user.name
  • # end

    it gets rendered as:

    if 3 == 3:

  • John Doe
  • without evaluating the condition

    update:
    now I see that condition works with different syntax

    if(condition)

    ...

    end

    it is ok now

    @avelino
    Copy link
    Owner

    avelino commented Feb 10, 2014

    Exist issue open: #7

    Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants