Skip to content

New Features #17

Description

@13leaf
  1. ?? operator
    $a ?? $b
    is equals to !empty($a)?$a:$b
  2. set not nullable value
    {{set x!=$a}},indicates x must not be null
    when we try set $x , if $x === null , tage will auto raise an Exception:
if($x === null){
throw new NotNullableException();
}
  1. capture set
    like twig,we can define that powerful set syntax,just like old block works
{{set capture}}
<div></div>
{{endset}}
{{$capture}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions