💥 Renombra "pub_handle" por "define_handle"
This commit is contained in:
parent
c8e444c82a
commit
f95bf8eeb3
34 changed files with 38 additions and 38 deletions
|
|
@ -3,9 +3,9 @@ use crate::html::Favicon;
|
|||
use crate::response::page::Page;
|
||||
use crate::server;
|
||||
use crate::util::Handle;
|
||||
use crate::{pub_handle, serve_static_files};
|
||||
use crate::{define_handle, serve_static_files};
|
||||
|
||||
pub_handle!(THEME_BASIC);
|
||||
define_handle!(THEME_BASIC);
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/theme.rs"));
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ pub fn component_mut<C: 'static>(component: &mut dyn ComponentTrait) -> &mut C {
|
|||
macro_rules! hook_before_render_component {
|
||||
( $ACTION_HANDLE:ident, $Component:ty ) => {
|
||||
$crate::paste! {
|
||||
$crate::pub_handle!($ACTION_HANDLE);
|
||||
$crate::define_handle!($ACTION_HANDLE);
|
||||
|
||||
type Action = fn(&$Component, &mut RenderContext);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use crate::core::component::{AnyComponent, ComponentTrait, RenderContext};
|
||||
use crate::html::{html, Markup};
|
||||
use crate::pub_handle;
|
||||
use crate::define_handle;
|
||||
use crate::util::Handle;
|
||||
|
||||
pub_handle!(HTML_MARKUP);
|
||||
define_handle!(HTML_MARKUP);
|
||||
|
||||
pub struct HtmlMarkup {
|
||||
pub markup: Markup,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
pub use crate::{concat_string, fn_builder, LazyStatic, ResultExt};
|
||||
|
||||
// Macros.
|
||||
pub use crate::{args, paste, define_config, pub_handle, pub_locale, serve_static_files};
|
||||
pub use crate::{args, paste, define_config, define_handle, pub_locale, serve_static_files};
|
||||
|
||||
// Helpers.
|
||||
pub use crate::util;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use super::Page;
|
||||
use crate::core::hook::{AnyHookAction, HookActionTrait};
|
||||
use crate::pub_handle;
|
||||
use crate::define_handle;
|
||||
use crate::util::Handle;
|
||||
|
||||
pub_handle!(HOOK_BEFORE_RENDER_PAGE);
|
||||
define_handle!(HOOK_BEFORE_RENDER_PAGE);
|
||||
|
||||
type Hook = fn(&mut Page);
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ pub const fn handle(
|
|||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! pub_handle {
|
||||
macro_rules! define_handle {
|
||||
( $HANDLE:ident ) => {
|
||||
pub const $HANDLE: $crate::util::Handle =
|
||||
$crate::util::handle(module_path!(), file!(), line!(), column!());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue