Move category and subforum listings into their own models so they can be invoked outside of index.html.ep and subf.html.ep #12

Closed
opened 2024-08-19 07:03:32 +00:00 by nu · 2 comments
Owner
No description provided.
nu added the
improvement
code clarity
labels 2024-08-19 07:03:41 +00:00
nu added this to the CharmBoard v1.0 milestone 2024-08-19 07:03:45 +00:00
Author
Owner

I'm not even sure if this would be necessary, but I'd rather do it early JUST IN CASE so nothing has to be changed later on.

I'm not even sure if this would be necessary, but I'd rather do it early JUST IN CASE so nothing has to be changed later on.
Author
Owner

Honestly looking at it, probably nearly the entirety of the code currently in CharmBoard::Controller::Index could be pushed into its own module in the CharmBoard::Model namespace for fetching a complete list of the forum's categories and subforums (CharmBoard::Model::Categories?)

It's not really any index-specific code, and it's mostly related to cat + subf listing

Honestly looking at it, probably nearly the entirety of the code currently in `CharmBoard::Controller::Index` could be pushed into its own module in the `CharmBoard::Model` namespace for fetching a complete list of the forum's categories and subforums (`CharmBoard::Model::Categories`?) It's not really any index-specific code, and it's mostly related to cat + subf listing
nu changed title from Move category and subforum listings into their own templates so they can be invoked outside of `index.html.ep` and `subf.html.ep` to Move category and subforum listings into their own models so they can be invoked outside of `index.html.ep` and `subf.html.ep` 2024-08-19 18:18:40 +00:00
nu closed this issue 2024-08-20 03:29:55 +00:00
nu added the
code organization
label 2024-08-21 05:40:34 +00:00
Sign in to join this conversation.
No Milestone
No project
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: nu/CharmBoard#12
No description provided.