Skip to content

Commit

Permalink
Relicense under MPL-2.0 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejhirsz authored Mar 24, 2024
1 parent 56c026f commit a6d020e
Show file tree
Hide file tree
Showing 13 changed files with 404 additions and 744 deletions.
1,047 changes: 373 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ With a touch of magic 🎩, the power of friendship 🥂, and a sparkle of
✨, render times easily compete with static template engines like
[**Askama**](https://github.com/djc/askama).

What else do you want, a sticker?

### Cargo.toml

```toml
Expand Down Expand Up @@ -128,5 +126,4 @@ thing to **Ramhorns** in design and feature set.

### License

Ramhorns is free software, and is released under the terms of the GNU General Public
License version 3. See [LICENSE](LICENSE).
Ramhorns is free software, and is released under the terms of the [Mozilla Public License](https://www.mozilla.org/en-US/MPL/) version 2.0. See [LICENSE](LICENSE).
2 changes: 1 addition & 1 deletion ramhorns-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "ramhorns-derive"
version = "1.0.0"
authors = ["Maciej Hirsz <[email protected]>"]
license = "GPL-3.0"
license = "MPL-2.0"
edition = "2018"
description = "Experimental Mustache-like templating engine."
repository = "https://github.com/maciejhirsz/ramhorns"
Expand Down
11 changes: 3 additions & 8 deletions ramhorns-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! <img src="https://raw.githubusercontent.com/maciejhirsz/ramhorns/master/ramhorns.svg?sanitize=true" alt="Ramhorns logo" width="250" align="right" style="background: #fff; margin: 0 0 1em 1em;">
//!
Expand Down
2 changes: 1 addition & 1 deletion ramhorns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "ramhorns"
version = "1.0.0"
authors = ["Maciej Hirsz <[email protected]>"]
license = "GPL-3.0"
license = "MPL-2.0"
edition = "2018"
description = "Experimental Mustache-like templating engine."
repository = "https://github.com/maciejhirsz/ramhorns"
Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/content.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use crate::encoding::Encoder;
#[cfg(feature = "indexes")]
Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/encoding.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! Utilities dealing with writing the bits of a template or data to the output and
//! escaping special HTML characters.
Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use std::{error, fmt, io};

Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! <img src="https://raw.githubusercontent.com/maciejhirsz/ramhorns/master/ramhorns.svg?sanitize=true" alt="Ramhorns logo" width="250" align="right" style="background: #fff; margin: 0 0 1em 1em;">
//!
Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/template/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use std::fmt;
use std::fs::File;
Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/template/parse.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use arrayvec::ArrayVec;
use logos::Logos;
Expand Down
11 changes: 3 additions & 8 deletions ramhorns/src/template/section.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Ramhorns Copyright (C) 2019 Maciej Hirsz
//
// This file is part of Ramhorns. This program comes with ABSOLUTELY NO WARRANTY;
// This is free software, and you are welcome to redistribute it under the
// conditions of the GNU General Public License version 3.0.
//
// You should have received a copy of the GNU General Public License
// along with Ramhorns. If not, see <http://www.gnu.org/licenses/>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use super::{Block, Tag};
use crate::encoding::Encoder;
Expand Down
4 changes: 4 additions & 0 deletions ramhorns/src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! This module contains helper traits that are used internally to manage
//! sequences of types implementing the `Content` trait, allowing us to
//! statically manage parent section lookups without doing extra work on
Expand Down

0 comments on commit a6d020e

Please sign in to comment.