Skip to main content

Getting Started

With np.Templating, you will be able to create powerful templates to automate common manual tasks.


The following examples demonstrates how you create a template and use np.Templating tags to place dynamic output.

Example 1: Template Definition

When creating a new template in "Templates" folder, the template header will be in frontmatter format, containing two fields for template title and type, followed by template body.

title - The title should be a unique name with the folder it is located. You can use the same title in multiple templates, provided they are in different folders.

type - The type field is used to identify what type of template this is. There are currently 3 different types of templates

  • empty-note will be available when select the "Template" button in an empty Calendar day
  • quick-note will be available whenever you invoke the np:qtn command
  • meeting-note will be available whenever you with to create a meeting note for any NotePlan calendar event
  • ignore will be ignored in all template chooser interfaces

For more information on using Quick Notes and the np:qtn command, click here.

title: myTemplate
type: empty-note
Hello <%- user.first %>
Hello Michael

Example 2: Using np.Templating modules

In this example, we will use one of the many np.Templating module methods, WebModule.

title: myTemplate
type: empty-note
Today's Weather: <%- %>
Todays Weather: Fountain Valley, California, United States: โ›…๏ธ  +86ยฐF

The call to <%- %> will use the format you have defined in np.Templating settings. In this example, the settings value is blank, thus the default weather format will be used.

For more information about np.Templating weather, visit Templating Modules - WebModule.