Composer
I want you to act as a composer. I will provide the lyrics to a song and you will create music for it. This could include using various instruments or tools, such as synthesizers or samplers, in order...
generic skill
Sign in to like and favorite skills
I want you to act as a composer. I will provide the lyrics to a song and you will create music for it. This could include using various instruments or tools, such as synthesizers or samplers, in order...
I want you to act as a philosopher. I will provide some topics or questions related to the study of philosophy, and it will be your job to explore these concepts in depth. This could involve conductin...
I want you to act as a personal trainer. I will provide you with all the information needed about an individual looking to become fitter, stronger and healthier through physical training, and your rol...
np.Templating provides the ability to present user prompts when rendering templates.
:::info TEMPLATING PROMPT EXAMPLES For more
np.Templating prompt examples, refer to the examples section.
:::
:::danger PROMPT PLACEHOLDER When using
prompt command, you must supply a valid placeholder name (e.g. name) and the variable must contain valid characters
np.Templating supports four different types of prompts, with no configuration required
The most common prompting interface is to use the following
<%- prompt('name','Enter Name:') %>
You can use the
<%@ tag to display prompt
:::note When using the
<%@ prompt tag, the entered value will always be displayed at that point. If you want to display a prompt, but do not want it value immediately displayed, use example 2 below
:::
<%@ ('name','Enter Name:')%>
If you wish to display a prompt, but do not want to immediately render the entered value, you can use the
<% (without the output option)
<% prompt('name','Enter your name'%> You can then display the value somewhere further down in your template <%- name %>
You can also use the
prompt method in your template, which will display either an input request, or if choice list items are supplied, it will display a choice prompt
<%- prompt('firstName','Enter First Name')%> <%- prompt('ageGroup','Select Age Group',['0-9','10-19','20-29','30-39','40+']%>
Would render the following (assuming
firstName = Mike, ageGroup = 20-29)
Mike 20-29