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

Introduce templates for quick start #25

Open
jbaron opened this issue Jan 7, 2013 · 4 comments
Open

Introduce templates for quick start #25

jbaron opened this issue Jan 7, 2013 · 4 comments

Comments

@jbaron
Copy link
Owner

jbaron commented Jan 7, 2013

Implement template system to quick-start a new project. For example templates for:

  1. Web app using Backbone.js and JQuery
  2. Nodejs server side application
  3. Windows 8 Application
  4. Phonegap Application

Will help newcomers to be more quickly productive. Could also include some sample projects.

@jbaron jbaron modified the milestones: version 1.1, version 0.8 Apr 7, 2014
@jbaron jbaron modified the milestones: version 1.1, Version 2.0 Aug 9, 2014
@jbaron
Copy link
Owner Author

jbaron commented Aug 23, 2014

List of quick-start templates candidates:

  1. Phonegap/Cordova
  2. AngularJS
  3. Backbone.js
  4. JQuery + UI
  5. Firefox OS applications
  6. Qooxdoo (since we are using this our selves)
  7. Turbulenz
  8. Windows 8/9 apps
  9. Nodejs serverside apps
  10. Nodewebkit apps

Idea is to host these templates somewhere on github and download them on a need-to-use basis. Have to come up with an API for both repository and format.

@dtrillo
Copy link

dtrillo commented May 10, 2015

I've been thinking about templates and .... it is needed.
I don't know if this templates you propose can be together with my approach.

Where I have CATS, I also want a template directory. Under this directory I can add my personal templates, so, apart from "New File", I will add "New File from template", read the content of this directory in order to process like this:

  • Create a new file
  • Read the template
  • The new file created in step 1 will have the code of the template selected
    Using this solution, one can:
  • have their own templates, depending on what they like
  • It's flexible (because CATS only need to veryfy if template directory exists, and in case it does, just offer the user to use one template.

I hope you like this point of view about templates! Of course, this way users can create TS templates, HTML templates, Javascript templates, .... And the way of giving action to templates is from a new file.

@jbaron
Copy link
Owner Author

jbaron commented May 11, 2015

Indeed I think templates would be a great addition. My current approach would be to adopt some existing system so there are already a few useful templates out there.

Ideally templating in CATS should support the following:

  1. Project templates (so to quickly for example start a Nodejs or Cordova project for example)

  2. File templates (quickly add a HTML5 file using some boilerplate content or anything else for that matter)

  3. Code templates (add a for next loop). This is already in place (part of the ACE editor)

Number 1 and 2 need to be added. They could use the same base tempalitng structure.

On 11 May 2015, at 01:33, David Trillo notifications@github.com wrote:

I've been thinking about templates and .... it is needed.
I don't know if this templates you propose can be together with my approach.

Where I have CATS, I also want a template directory. Under this directory I can add my personal templates, so, apart from "New File", I will add "New File from template", read the content of this directory in order to process like this:

Create a new file
Read the template
The new file created in step 1 will have the code of the template selected Using this solution, one can:
have their own templates, depending on what they like
It's flexible (because CATS only need to veryfy if template directory exists, and in case it does, just offer the user to use one template.
I hope you like this point of view about templates! Of course, this way users can create TS templates, HTML templates, Javascript templates, .... And the way of giving action to templates is from a new file.


Reply to this email directly or view it on GitHub #25 (comment).

@dtrillo
Copy link

dtrillo commented May 11, 2015

Is it difficult to implement my approach of using templates?

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

No branches or pull requests

2 participants