https://github.com/acheul/sycamore-template
Generates sycamore templates
https://github.com/acheul/sycamore-template
Last synced: 3 months ago
JSON representation
Generates sycamore templates
- Host: GitHub
- URL: https://github.com/acheul/sycamore-template
- Owner: acheul
- License: mit
- Created: 2024-04-09T13:53:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-19T17:23:28.000Z (5 months ago)
- Last Synced: 2025-11-19T19:14:44.823Z (5 months ago)
- Language: Rust
- Size: 261 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - acheul/sycamore-template - Generates sycamore templates (<a name="Rust"></a>Rust)
README
⚠️ ***This crate got DEPRECATED: Won't be maintained anymore***
This crate was a personal project developed independently from the official Sycamore versions. And it's not going to be updated or maintained. For information on using Sycamore framework, refer to its official site.
# Sycamore Template Generator
[](https://crates.io/crates/sycamore-template)
Initiate a [sycamore](https://sycamore-rs.netlify.app/) project (since sycamore version of 0.9)
## Installation
```
cargo install sycamore-template
```
## Use
* Simple example: this command generates a sycamore project named "ex-project" (see directory `ex-project`)
```
sycamore-template --name=ex-project
```
* Full example: this command generates a sycamore project named "ex-router-project", which using `sycamore-router`. Also the `index.html` will have head lines of `copy-dir` and `css`. (see directory `ex-router-project`)
```
sycamore-template
--name=ex-router-project
--router=true
--copy-dir="/assets"
--css="/assets/style.css"
```
## Options
```
sycamore-template
--name=project-name
--router=false
--copy-dir="/assets"
--css="/style.css"
--favicon="/favicon.svg"
```
* name
- project's name. This argument is required.
* router
- bool. default: false.
- Whether or not to use `sycamore-router`
* copy-dir
- Optional. Add a head line in the `index.html` file with given value:
- ``
- This does not make an actual directory.
* css
- Optional. Add a head line in the `index.html` file with given value:
- ``
- This does not make an actual file.
* favicon
- Optional. Add a favicon head line in the `index.html` with given value:
- ``
* version:
- At this moment, sycamore version `0.9` is used for default;
# Logs
```yaml
* `v0.1.0-beta.4`
- follow up of sycamore v0.9.0-beta.4.
* `v0.1.1`
- stablized with sycamore v0.9
* `v0.1.2`
- added `` for `index.html`
```