content_prompt.hbs

 1{{#if language_name}}
 2File language: {{language_name}}
 3{{/if}}
 4
 5<document>
 6{{{document_content}}}
 7</document>
 8
 9{{#if is_truncated}}
10Note: Context around the relevant section has been truncated for brevity.
11{{/if}}
12
13Editing instructions:
141. Rewrite the section marked with <rewrite_this></rewrite_this> tags based on this prompt:
15<prompt>
16{{{user_prompt}}}
17</prompt>
18
192. Within <rewrite_this></rewrite_this>, make changes only in these subsections:
20   {{#if has_insertion}}
21   - Insert text where marked with <insert_here></insert_here> tags
22   {{/if}}
23   {{#if has_replacement}}
24   - Edit text surrounded by <edit_here></edit_here> tags
25   {{/if}}
26
273. Section to edit:
28<rewrite_this>
29{{{rewrite_section_with_selections}}}
30</rewrite_this>
31
324. Guidelines:
33   - Only make changes necessary to fulfill the prompt
34   - Preserve all surrounding {{content_type}}
35   - Maintain the original indentation level
36   - Rewrite the entire section, even if no changes are needed
37   - Do not include <rewrite_this>, <insert_here>, or <edit_here> tags in your output
38
39Output format:
40Immediately start with the following, ensuring no leading whitespace:
41```{{REWRITTEN_CODE}}```