Skip to content

Commit

Permalink
Add attribute custom
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Jul 21, 2024
1 parent 7b94bde commit 6240c0a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
7 changes: 7 additions & 0 deletions redraw/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2024 Guillaume Hivert

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13 changes: 7 additions & 6 deletions redraw/gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ target = "javascript"

# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
#
# description = ""
# licences = ["Apache-2.0"]
# repository = { type = "github", user = "", repo = "" }
# links = [{ title = "Website", href = "" }]
#

description = "React bindings for Gleam! Supports everything modern React provides, with full Gleam Type-Checking system!"
internal_modules = ["redraw/internals", "redraw/internals/*"]
licences = ["MIT"]
repository = { type = "github", user = "ghivert", repo = "redraw" }
links = [{ title = "Sponsor", href = "https://github.com/sponsors/ghivert" }]

# For a full reference of all the available options, you can have a look at
# https://gleam.run/writing-gleam/gleam-toml/.

Expand Down
2 changes: 2 additions & 0 deletions redraw/src/redraw/attribute.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import redraw/internals/attribute
pub type Attribute =
attribute.Attribute

pub const attribute = attribute.attribute

pub fn href(url: String) {
attribute.attribute("href", url)
}
Expand Down
7 changes: 7 additions & 0 deletions redraw_dom/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2024 Guillaume Hivert

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12 changes: 6 additions & 6 deletions redraw_dom/gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ target = "javascript"

# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
#
# description = ""
# licences = ["Apache-2.0"]
# repository = { type = "github", user = "", repo = "" }
# links = [{ title = "Website", href = "" }]
#

description = "Redraw DOM renderer. Take a look at Redraw to use it."
licences = ["MIT"]
repository = { type = "github", user = "ghivert", repo = "redraw" }
links = [{ title = "Sponsor", href = "https://github.com/sponsors/ghivert" }]

# For a full reference of all the available options, you can have a look at
# https://gleam.run/writing-gleam/gleam-toml/.

Expand Down

0 comments on commit 6240c0a

Please sign in to comment.