Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are conditionals possible? #81

Open
elorest opened this issue Mar 25, 2018 · 1 comment
Open

Are conditionals possible? #81

elorest opened this issue Mar 25, 2018 · 1 comment

Comments

@elorest
Copy link

elorest commented Mar 25, 2018

In Haml, Slim, Slang I'm used to the following.

- if name.size > 10
  | You have a long name.
- else
  | You're name is average.

Is there anyway to achieve something similar with Ace?

@rdbell
Copy link

rdbell commented Nov 28, 2018

1   doctype html
  1 html(lang="en")
  2     head
  3         title= Title
  4     body
  5         h1= Title
  6         if SessionId == ""
  7             p Login
  8             p
  9                 form(method="POST")
 10                     div Username
 11                         input(type="text" name="username")
 12                     div Password
 13                         input(type="password" name="password")
 14                     div Secret Key
 15                         input(type="text" name="key")
 16                     div
 17                         input(type="submit" name="submit" value="Login")
 18         else
 19             p login complete
 20             p= SessionId

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

No branches or pull requests

2 participants