Find a way to load pugjs files in without compiling them. #3

Closed
opened 2024-07-14 18:00:45 -04:00 by am · 2 comments
Owner

This might help... https://github.com/pugjs/pug/issues/3012

It would be good for us to be able to use the _[pattern].pug files to display pug instead of having a second file that starts with a dot.

This might help... https://github.com/pugjs/pug/issues/3012 It would be good for us to be able to use the _[pattern].pug files to display pug instead of having a second file that starts with a dot.
am added the
Kind/Bug
Priority
3 Low
Status/Need More Info
labels 2024-07-15 11:57:17 -04:00
Author
Owner

That article is no help. The issue was closed with no solution.

That article is no help. The issue was closed with no solution.
Author
Owner

This should be added to the readme / docs.

Including files with unrecognised extensions does not compile them.

  1. In your project config, create a Custom Tool called Pug pattern to pug file
  2. Check Process automatically and set the command to 'cp {{input}} {{output}}' on Mac/Linux and copy {{input}} {{output}}.
  3. Set the Output to Relative to input
  4. Set the Output Extension to .pug

In your design system implementation,

  1. Create the files that you edit as _[pattern].pp files, and set them to auto compile. (You may wish to let your text editor know what they are, so the syntax highlighting works.
  2. Save the file, ensure that it is set to in prepros it is set to process automatically.
  3. Include the .pp file as your pug pattern with .language-pug and include the .pug file as your html output.

This will ensure that the .pug file will get processed and the .pp file will be handled as text will get compiled, but they should display correctly and remain in sync while maintaining the minimum number of files.

This should be added to the readme / docs. Including files with unrecognised extensions does not compile them. 1. In your project config, create a Custom Tool called Pug pattern to pug file 1. Check Process automatically and set the command to 'cp {{input}} {{output}}' on Mac/Linux and copy {{input}} {{output}}. 1. Set the Output to Relative to input 1. Set the Output Extension to .pug In your design system implementation, 1. Create the files that you edit as _[pattern].pp files, and set them to auto compile. (You may wish to let your text editor know what they are, so the syntax highlighting works. 1. Save the file, ensure that it is set to in prepros it is set to process automatically. 1. Include the .pp file as your pug pattern with .language-pug and include the .pug file as your html output. This will ensure that the .pug file will get processed and the .pp file will be handled as text will get compiled, but they should display correctly and remain in sync while maintaining the minimum number of files.
am closed this issue 2024-07-16 04:06:24 -04:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gamv/ds2-core#3
No description provided.