open-graph

crates.io version build status downloads docs.rs docs

Generate HTML for Open Graph integration.

Examples

Basic usage ```rust use open_graph::{OpenGraph, ObjectType};

let card = OpenGraph::builder() .site("@flickr") .title("The Rock") .type(ObjectType::VideoMovie) .image("http://ia.media-imdb.com/images/rock.jpg") .build(); html <--! Output --> ```

Installation

sh $ cargo add open-graph

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

License

MIT OR Apache-2.0