Structuring Pollen libraries #52

Open
opened 4 years ago by basus · 2 comments
basus commented 4 years ago (Migrated from github.com)

As I've been using Pollen to build my website, I've been gradually building up a small library tag functions. They're mostly for the standard HTML5 tags, but also for the Bootstrap framework. I was wondering if there's a good way to structure these so that I can (1) re-use them across projects and maybe (2) release them to other Pollen users who might find them helpful. Currently they are a couple of submodules in my top-level pollen.rkt file.

As I've been using Pollen to build [my website](https://basus.me), I've been gradually building up a small library tag functions. They're mostly for the standard HTML5 tags, but also for the [Bootstrap framework](https://getbootstrap.com/). I was wondering if there's a good way to structure these so that I can (1) re-use them across projects and maybe (2) release them to other Pollen users who might find them helpful. Currently they are a couple of submodules in my top-level `pollen.rkt` file.
otherjoel commented 4 years ago (Migrated from github.com)

The most polished way would be to create a package and include Scribble documentation and make it available on the package server.

But if you simply make a GitHub repo with a good README and your code is well-commented, you could start by just creating one or more .rkt files that people can copy into their own projects.

The most polished way would be to create a [package](https://docs.racket-lang.org/pkg/getting-started.html) and include Scribble documentation and make it available on the package server. But if you simply make a GitHub repo with a good README and your code is well-commented, you could start by just creating one or more `.rkt` files that people can copy into their own projects.
mbutterick commented 4 years ago (Migrated from github.com)

Or maybe just release the source code for the whole project? Bootstrap is popular and I’m sure fellow Bootstrap lovers would enjoy seeing how it can be automated via Pollen.

Or maybe just release the source code for the whole project? Bootstrap is popular and I’m sure fellow Bootstrap lovers would enjoy seeing how it can be automated via Pollen.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
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: mbutterick/pollen-users#52
Loading…
There is no content yet.