Skip to content

Commit

Permalink
Add alias module for macro
Browse files Browse the repository at this point in the history
  • Loading branch information
therustmonk committed May 28, 2019
1 parent 58c69d3 commit 2858503
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! }
use callback::Callback;
use html;
use html::{ChangeData, Component, ComponentLink, Html, Renderable, ShouldRender};
use macros::html;

/// `Select` component.
pub struct Select<T> {
Expand Down
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ extern crate yew_macro;
#[macro_use]
#[cfg(not(feature = "proc_macro"))]
pub mod macros;

#[cfg(feature = "proc_macro")]
/// Alias module for the procedural macro.
pub mod macros {
pub use yew_macro::html;
}

pub mod components;
pub mod format;
pub mod services;
Expand Down

0 comments on commit 2858503

Please sign in to comment.