I am working on creating a template for a storybook file and it includes double "{{" for the actual file. How do I make sure that Handlebars ignores that when it is actually needed in the template?
import styled from 'styled-components';
import { Canvas, Meta, Story, ArgsTable } from "@storybook/addon-docs";
import { Source } from '@storybook/addon-docs/blocks'
import {{pascalCase component}} from "./{{pascalCase component}}.component";
<Meta
title="{{pascalCase component}}"
component={{{pascalCase component}}}
parameters={{ previewTabs: {{ canvas: { hidden: true } }} }} // This hides the canvas tab - its extraneous
/>
export const Template = (args) => <{{pascalCase component}} {...args}>Example</{{pascalCase component}}>;
# {{pascalCase component}}
<Canvas withToolbar>
<Story
name="{{pascalCase component}} - main"
argTypes={{{
id: {
name: "id",
description: "{{pascalCase component}} ID",
control: { type: "text" },
table: {
type: { summary: "string" },
defaultValue: { summary: "" },
},
},
className: {
name: "className",
control: { type: "text" },
table: {
type: { summary: "string" },
defaultValue: { summary: "" },
},
},
}}}
>
{(args) => {
return <{{pascalCase component}} {...args} />;
}}
</Story>
</Canvas>
<ArgsTable story="{{pascalCase component}} - main" />
This file is what I am attempting to fix some of the broken changes are in here still.