Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an examples directory #74

Open
dtolnay opened this issue Apr 8, 2018 · 4 comments
Open

Add an examples directory #74

dtolnay opened this issue Apr 8, 2018 · 4 comments

Comments

@dtolnay
Copy link
Contributor

dtolnay commented Apr 8, 2018

It would be helpful to have a copy of the "How to get started" readme section as a fully laid out examples directory where someone could just drop in and do cargo run and see everything work.

@djc
Copy link
Owner

djc commented Apr 9, 2018

It's a good idea. I just tried it, but it appears the CARGO_MANIFEST_DIR, while compiling an example, still points to the crate root rather than the example (even though the example has its own manifest). That makes it not a very self-contained example, unfortunately...

@tobias47n9e
Copy link

tobias47n9e commented Jul 24, 2018

I put a minimal askama + rocket example here in case anyone is looking for just that: https://gitlab.com/tobias47n9e/rocket_with_askama_example (WIP)

@Th3Whit3Wolf
Copy link

Is this still an issue? I know repos like OrbTK where you can compile examples with cargo run --example widgets --release.

Another option would be to make a repo just for askama examples or to use write examples in markdown with mdbook and render them with gh-pages.

@djc
Copy link
Owner

djc commented Jul 19, 2019

Yes, it is still an issue. A separate crate inside this repo could work, I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants