{"repo":"j3lte/react-mustache-template-component","free":true,"listed":false,"github":"https://github.com/j3lte/react-mustache-template-component","clone":"git clone https://github.com/j3lte/react-mustache-template-component.git","description":"React Mustache Template Component","language":"TypeScript","stars":20,"topics":["component","mustache","react","template","typescript"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"React Mustache Template Component The Template component that uses Mustache.js to render the a component, sanitized by dompurify. Demo See Storybook Installation and Usage The use it in your app: This will be rendered as Notes - Input is properly sanitized by dompurify. This can be switched off ( ... sanitize={false} ... ) but is highly discouraged, as this might introduce XSS issues Props Props that are used: Name Required Type Default Comments --- --- --- --- --- template Yes string - Mustache template string that is used in your template component data No object {} Data used by Mustache to replace placeholders (marked by {{}} ) type No string \"div\" Type of container. Can be any HTMLElement, like div , span , i etc sanitize No boolean true Sanitize the result using dompurify sanitizeOptions No object {} Sanitation can be changed by Dompurify.Config options Besides these props, it can also use all basic HTML attributes, like className , style , id , etc. Development To install dependencies To build To run tests To run Storybook License MIT Licensed. Copyright (c) Jelte Lagendijk 2020.","default_branch":null,"files":null,"tree":[],"storefront":"/r/j3lte","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/j3lte/react-mustache-template-component/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}