UNPKG

neft

Version:

JavaScript. Everywhere.

22 lines (13 loc) 533 B
> [Wiki](Home) ▸ [[API Reference|API-Reference]] ▸ [[Document|Document-API]] ▸ **neft:if** # neft:if Attribute used to hide or show the tag depends on the condition result. ```xml <span neft:if="${props.user.isLogged}">Hi ${props.user.name}!</span> <span neft:else>You need to log in</span> ``` > [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/document/file/parse/conditions.litcoffee#neftif) ## Table of contents * [neft:if](#neftif) * [Glossary](#glossary) # Glossary - [neft:if](#neftif)