create wiki

go home go home
  1. about
  2. code
  3. wiki
  4. blog

Create Library

From Create Wiki

Jump to: navigation, search

The Create Library is a planned component of the framework.

It will take advantage of the planned dC namespacing capabilities in dC, along with a new Engine (in the form of the Shell), to allow the creation of applications extremely quickly and easily by allowing application developers to start with pre-made templates (in the Create Library or custom libraries) and easily customize them by replacing or extending any object.

The Library will be split into two portions, each with its own folder: Frameworks and Applications.

Some of the basic projects and frameworks that should be included in the library are:

  • Postcard Application and Framework
  • Calendar Application and Framework


The Applications will be entire, pre-made applications. This includes any command files, scripts, and any other resources required to run the application. In addition, each application shall come with example data, and be completely executable without any modification — allowing users a near-zero time from starting to seeing actual output.

The Frameworks will include primarily dC and JavaScript files that handle the creation of output. In the case of a postcard application and framework, for instance, the framework would define a PostcardApplication object, and the application would actually have a main.dc file that creates a PostcardApplication, and any configuration utilities needed.

The applications will be as lightweight as possible. They will likely have a structure similar to the following:

  • main.dc
  • config.dc — a default config file.
  • init script — initializes the create framework
  • example-sources — so things get started right away.

The main.dc file will be lightweight as well, similar to the following:

//automatically generated: my-app namespace is named whatever your
//app is named.
#namespace my-app
 
//a single line is all that's required to use the default settings.
(PostcardApplication) main;
 
//changing the settings is as simple as below, which overrides
//the default postcard application to create a new one for
//this application
(PostcardApplication) PostcardApplication: {
};
 
//usually, though, the settings would be in the config, and in a separate file:
(PostcardApplication.Config) PostcardApplication.Config: {
    "pdfs-folder": "PDFs"
};
Personal tools