Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: allow output extension to be changed from .html #664

Closed
codemonkeynorth opened this issue Oct 12, 2022 · 4 comments
Closed

Comments

@codemonkeynorth
Copy link

codemonkeynorth commented Oct 12, 2022

It would be useful to be able to change the output extension from .html, in my case to .php

I realise it's an edge case but I'm using jigsaw to create a temporary static drop-in "holding site" theme for wordpress whilst the main site is being worked on separately

as such being able to generate the files as eg index.php and page-home.php would be helpful

thanks
J.

(just as a note... for now i've created an index.php that does a require('index.html')).. since the index.php will be copied over as-is, this works fine for the build)

@bakerkretzmar
Copy link
Collaborator

If you set a permalink with a .php extension does that work? Something like this:

index.blade.php

---
permalink: index.php
---
{{-- Blade template contents --}}

@jmp909
Copy link

jmp909 commented Oct 13, 2022

@bakerkretzmar - it does indeed, thank you very much!!

the question now is whether anyone would actually want to output every file with a specific extension as a global build option. possibly yes I guess.

I'll leave this open for now, but again for my case where I've only got a couple of pages your solution is perfect.

@codemonkeynorth
Copy link
Author

(posted from the wrong account) @bakerkretzmar thanks

@bakerkretzmar
Copy link
Collaborator

@codemonkeynorth no problem! I'm going to close this for now but that is an interesting idea. I doubt anyone would need it for their entire site, but I can see it possibly being useful for an entire collection. We could explore making the path config option support file extensions, so that they could be configured/overridden there, or adding an extension option or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants