Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
crisward committed Nov 22, 2016
1 parent 9299ed4 commit 0aa125c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -11,8 +11,8 @@ It's much quicker to use this tag, then change your tagname within your script.
This is no longer required with riot 3.0.
Simply use

```
<div data-is="{yourtag}"></div>
```html
<div data-is="{sometag}"></div>
```

Riot 2.* users, see below
Expand All @@ -35,19 +35,19 @@ require('riot-subtag')
```html
//your.tag

<youtag>
<yourtag>
<subtag tag="{sometag}"></subtag>

<script>
@on('mount',function(){
if (somecondition==true){
this.subtag = "onetag"
this.sometag = "onetag"
}else{
this.subtag = "twotag"
this.sometag = "twotag"
}
})
</script>
</youtag>
</yourtag>

```

Expand Down

0 comments on commit 0aa125c

Please sign in to comment.