Skip to content

Commit

Permalink
Release v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
msaraiva committed Mar 5, 2021
1 parent 84b0251 commit 3efca85
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## v0.3.1 (WIP)
## v0.3.1 (2021-03-05)

* Fix `index.js` generation when no hooks are available
* Fix loading hooks from dependencies
* Support `<Link>` with scheme (#273)

## v0.3.0 (2021-02-24)
Expand Down
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,34 @@ A VS Code extension that adds support for syntax highlighting is available at

### Example

![Example](images/example.png?raw=true)
```elixir
# Defining the component

defmodule Hello do
use Surface.Component

@doc "Someone to say hello to"
prop name, :string, required: true

def render(assigns) do
~H"""
Hello, {{ @name }}!
"""
end
end

# Using the component

defmodule Example do
use Surface.Component

def render(assigns) do
~H"""
<Hello name="John Doe"/>
"""
end
end
```

## How does it work?

Expand Down
Binary file removed images/example.png
Binary file not shown.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Surface.MixProject do
use Mix.Project

@version "0.3.0"
@version "0.3.1"

def project do
[
Expand Down

0 comments on commit 3efca85

Please sign in to comment.