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

Added @if attribute to "puts" tag #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

atecarlos
Copy link

Added the @if attribute to the puts tag to allow for more simplified code. The @if attribute follows the same rules as the @cond attribute for the "if" tag. Added extra specs to cover for this new functionality.

Carlos Atencio added 2 commits February 6, 2011 10:51
…resent, it will output the value of the variable defined in the @value_for attribute if and only if the condition is true. The @if attribute follows the same syntax as the "if" attribute.
… the @text attribute. This can be useful when adding flexibility to snippets and generating conditional html.
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

Successfully merging this pull request may close these issues.

1 participant