workbenchdev / workbenchdev/Workbench
How to import another projects' templates?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 844
- Forks
- 91
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 1
Description
Yello~
learning GTK, love this tool!
Can't really find any resources on splitting up a project into multiple files. I found that it's not really made for that, and I'm fine with that, but it'd be nice if I could somehow at least import the file from another project if not edit it.
An example for this would be sick.
There is the custom widget example in the library, but it imports from "workbench.template", no clue what I should put there.
From what I understand atm (prolly wrong), I need to import the gresource from the other project, and then maybe put that into the Template field of registerClass?
Thanks for any tips~
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the library's custom widget example and its “workbench.template” import, then trace how templates and the registerClass Template field are handled. Document whether importing a template from another project is supported and provide a working example, including the required resource setup. Done when a newcomer can follow the example without guessing what to put in the import or Template field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100