@hodgef/blank-theme
v2.0.7
Published
CSR Blank Theme for PRSS (Legacy)
Downloads
32
Readme
⚠️ How to use:
When you first build your page with the theme, you'll notice nothing shows up. This is intentional, as it's up to you to use the data to build your layout.
The PRSS Client Library, is already loaded with the Theme. Use its methods to render your content.
Example
Note: For a more detailed example, check out the v1.15.0 release notes.
<script>
const post = PRSS.getProp("item");
PRSS.setContent("div.app", `
<h1>${post.title}</h1>
<div class="content">
${post.content}
</div>
`, true);
</script>
Alternatively, you can apply this code to all pages of your site: