Revert remove use of --cfg=web_sys_unstable_apis for templates

This commit is contained in:
Joshua McQuistan 2023-11-10 17:14:14 +00:00
parent e242834b66
commit f918da9688
2 changed files with 7 additions and 0 deletions

View file

@ -3,6 +3,10 @@ variables:
ask: Name of the function
- name: category
ask: Documentation category (lower case)
- name: unstable_apis
default_value: "false"
ask: Does the function require `--cfg=web_sys_unstable_apis` to be activated?
select_in_values: ["true", "false"]
- name: module
default_value: ""
ask: Module [optional]

View file

@ -3,6 +3,9 @@ use leptos::*;
///{{#if (eq unstable_apis "true")}}
///
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).{{/if}}
///
/// ## Demo
///
/// [Link to Demo](https://github.com/Synphonyte/leptos-use/tree/main/examples/{{ function_name }})