Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
loomchild committed Oct 27, 2020
1 parent b21b568 commit 727a193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To add an event handler, add a `x-on` custom attribute (shorthand starting with
Attributes containing a dot `.` character in their name are not allowed in Webflow. To bypass this limitation, use another `:` character instead. For example, add `x-on:click:away` attribute with value `open = false`.

## Conditional statements
In Webflow we cannot create a `<template>` element in the designer, and this is necessary for `x-if` conditional. To solve this issue, this script automatically transforms any element containing `x-if` into `<template>`. For example we can create a conditional Div Block with `x-if` attribute with `open` value.
In Webflow it's not possible to create a `<template>` element in the designer, and it is necessary for `x-if` conditionals. To solve this issue, this script automatically transforms any element containing `x-if` into `<template>`. For example we can create a conditional Div Block with `x-if` attribute with `open` value.

## For loops
Similarly to conditional statements, any element containing `x-for` is automatically converted to `<template>`. For example, to initialize a loop, simply create a div block with `x-for` attribute equal to `item in items`, and `x-bind:key` attribute with value `item`.
Expand Down

0 comments on commit 727a193

Please sign in to comment.