Brian Chen

Results 9 comments of Brian Chen

OK, this takes a lot more passing information around, but as far as I know you can't stylize text some way with console escape codes and then recover the previous...

To be clear, I want to generate a file called `/path/to/post-name.html`, but for the generated URLs and presumably the dev server to use `/path/to/post-name`. I agree the URLs get a...

FWIW, I understand if you don't want this feature in core, but I would be satisfied by a plugin architecture that lets me do these two things and nothing else:...

OK, after reading that, I figured out how to monkey-patch Lektor from a plugin to basically work for my use case: https://gist.github.com/betaveros/fcf9e54706acc241eb16604debe4901f So I think this will work for now....

A possible way to combine the behavior with #344 could be to define a new system field `_slug_style` (?? name TBD) that affects this invocation of `_process_slug`: https://github.com/lektor/lektor/blob/1438f5444afe4b21f12b131b84b0c24118b61cd3/lektor/db.py#L417 This new...

Does anybody have thoughts or feedback on the above design and PR?

Cool. Yeah, the PR does not actually do the URL faking part of this issue; it just gives you an option to let something with slug `project` render at `/projects.html`...

That sounds vaguely useful, I could imagine accepting a PR. I don't know what's up with flush deleting things. That sounds like a bug. But I don't have a mac...

Hmm, I did think about allocating `?` or "identifiers beginning with `?`" to one of these, and maybe guarded patterns like `case x if 1 < x < 9 ->...