@hodgef/blank-theme

2.0.7 • Public • Published

Blank (CSR - Legacy)

Absolute flexibility. All you need to let your imagination flow.

⚠️ 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>

image image

Alternatively, you can apply this code to all pages of your site:

image image

Readme

Keywords

none

Package Sidebar

Install

npm i @hodgef/blank-theme

Weekly Downloads

4

Version

2.0.7

License

MIT

Unpacked Size

29.4 kB

Total Files

14

Last publish

Collaborators

  • hodgef