edge.js
Version:
Template engine
13 lines (12 loc) • 300 B
TypeScript
import { TagContract } from '../types.js';
/**
* Inverse of the `if` condition. The term `unless` is more readable and logical
* vs using `@if(!expression)`.
*
* ```edge
* @unless(auth.user)
* <a href="/login"> Login </a>
* @endunless
* ```
*/
export declare const unlessTag: TagContract;