Sample locals variables

Tri Nguyen edited this page Jun 14, 2013 · 2 revisions
Clone this wiki locally
{ contents:
   { pages: { '1.page': [Object] },
     'index.page':
      { pageNum: 1,
        articles: [Object],
        prevPage: undefined,
        nextPage: undefined,
        parent: [Object],
        __env: [Object],
        __filename: 'generator',
        __plugin: [Object] },
     'about.md':
      { filepath: [Object],
        metadata: [Object],
        markdown: '\n\nWintersmith is made by [Johan Nordberg][1] and licensed under the [MIT-license][2].\nThis footer text can be edited in about.md\n\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\nconsequat.\n\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum\ndolore eu fugiat nulla pariatur.\n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia\ndeserunt mollit anim id est laborum.\n\n\n[1]: http://johan-nordberg.com\n[2]: http://opensource.org/licenses/MIT\n',
        __env: [Object],
        __plugin: [Object],
        __filename: '/path/to/wintersmith/contents/about.md',
        parent: [Object] },
     'archive.json':
      { filepath: [Object],
        metadata: [Object],
        markdown: '',
        __env: [Object],
        __plugin: [Object],
        __filename: '/path/to/wintersmith/contents/archive.json',
        parent: [Object] },
     'feed.json':
      { filepath: [Object],
        metadata: [Object],
        markdown: '',
        __env: [Object],
        __plugin: [Object],
        __filename: '/path/to/wintersmith/contents/feed.json',
        parent: [Object] },
     css: { 'main.css': [Object] },
     authors:
      { 'baker.json': [Object],
        'the-wintersmith.json': [Object],
        'tri-nguyen.json': [Object] },
     articles: { 'hello-world': [Object] },
     default:
      { 'another-test': [Object],
        'bamboo-cutter': [Object],
        'markdown-syntax': [Object],
        'red-herring': [Object],
        'hello-world': [Object] } },
  articles:
   [ { filepath: [Object],
       metadata: [Object],
       markdown: '\n\nWelcome to your new blog! This is the default blog template with RSS, pagination and an archive. There are other templates available -- run `wintersmith new --help` to list them.\n\n## _Repeat after me:_ This is my blog. There are many like it, but this one is mine. My blog is my best friend. It is my life. I must master it as I must master my life. My blog, without me, is useless. Without my blog, I am useless.\n\nGood, now, the directory structure of your blog is as follows:\n\n```\n├── config.json               <- site configuration\n├── contents\n│   ├── about.md\n│   ├── archive.json\n│   ├── articles              <– each article has its own directory\n│   │   ├── another-test\n│   │   │   └── index.md\n│   │   ├── bamboo-cutter\n│   │   │   ├── index.md\n│   │   │   └── taketori_monogatari.jpg\n│   │   ├── hello-world\n│   │   │   └── index.md\n│   │   ├── markdown-syntax\n│   │   │   └── index.md\n│   │   └── red-herring\n│   │       ├── banana.png\n│   │       └── index.md\n│   ├── authors               <- author metadata, check author.jade\n│   │   ├── baker.json\n│   │   └── the-wintersmith.json\n│   ├── css\n│   │   └── main.css\n│   └── feed.json\n├── plugins\n│   └── paginator.coffee      <- paginator plugin\n├── templates\n│   ├── archive.jade\n│   ├── article.jade\n│   ├── author.jade\n│   ├── feed.jade\n│   ├── index.jade\n│   └── layout.jade\n└── views\n    └── articles.coffee       <- view that lists articles\n```\n\nArticles are sorted by date and 3 are shown per page, you can configure this and more in config.json. Check paginator.coffee for all options related to pagination, most plugins also have their own options.\n\n### A typical article\n\n```markdown\n---\ntitle: Hear me blog\nauthor: johndoe\ndate: 2012-12-12 12:12\n---\n\nThis will be shown as the article excerpt.\n\n## A h2, hr or <span class="more"> marks where the intro cuts off\n\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\n```\n\nThis is where I leave you to your own devices. Join **#wintersmith** on freenode if you have any questions.\n\n',
       __env: [Object],
       __plugin: [Object],
       __filename: '/path/to/wintersmith/contents/articles/hello-world/index.md',
       parent: [Object] } ],
  prevPage: undefined,
  nextPage: undefined,
  url: 'http://localhost:4000',
  name: 'Tri Nguyen',
  owner: 'Tri Nguyen',
  description: 'Web Developer',
  moment:
   { [Function]
     utc: [Function],
     unix: [Function],
     duration: { [Function] fn: [Object] },
     version: '2.0.0',
     defaultFormat: 'YYYY-MM-DDTHH:mm:ssZ',
     lang: [Function],
     langData: [Function],
     isMoment: [Function],
     isDuration: [Function],
     fn:
      { clone: [Function],
        valueOf: [Function],
        unix: [Function],
        toString: [Function],
        toDate: [Function],
        toJSON: [Function],
        toArray: [Function],
        isValid: [Function],
        utc: [Function],
        local: [Function],
        format: [Function],
        add: [Function],
        subtract: [Function],
        diff: [Function],
        from: [Function],
        fromNow: [Function],
        calendar: [Function],
        isLeapYear: [Function],
        isDST: [Function],
        day: [Function],
        startOf: [Function],
        endOf: [Function],
        isAfter: [Function],
        isBefore: [Function],
        isSame: [Function],
        zone: [Function],
        daysInMonth: [Function],
        dayOfYear: [Function],
        isoWeek: [Function],
        week: [Function],
        lang: [Function],
        months: [Function],
        month: [Function],
        dates: [Function],
        date: [Function],
        hours: [Function],
        hour: [Function],
        minutes: [Function],
        minute: [Function],
        seconds: [Function],
        second: [Function],
        milliseconds: [Function],
        millisecond: [Function],
        years: [Function],
        year: [Function],
        days: [Function],
        weeks: [Function],
        isoWeeks: [Function],
        _lang: [Object] } },
  _:
   { [Function]
     _: [Circular],
     VERSION: '1.4.4',
     forEach: [Function],
     each: [Function],
     collect: [Function],
     map: [Function],
     inject: [Function],
     foldl: [Function],
     reduce: [Function],
     foldr: [Function],
     reduceRight: [Function],
     detect: [Function],
     find: [Function],
     select: [Function],
     filter: [Function],
     reject: [Function],
     all: [Function],
     every: [Function],
     any: [Function],
     some: [Function],
     include: [Function],
     contains: [Function],
     invoke: [Function],
     pluck: [Function],
     where: [Function],
     findWhere: [Function],
     max: [Function],
     min: [Function],
     shuffle: [Function],
     sortBy: [Function],
     groupBy: [Function],
     countBy: [Function],
     sortedIndex: [Function],
     toArray: [Function],
     size: [Function],
     take: [Function],
     head: [Function],
     first: [Function],
     initial: [Function],
     last: [Function],
     drop: [Function],
     tail: [Function],
     rest: [Function],
     compact: [Function],
     flatten: [Function],
     without: [Function],
     unique: [Function],
     uniq: [Function],
     union: [Function],
     intersection: [Function],
     difference: [Function],
     zip: [Function],
     object: [Function],
     indexOf: [Function],
     lastIndexOf: [Function],
     range: [Function],
     bind: [Function],
     partial: [Function],
     bindAll: [Function],
     memoize: [Function],
     delay: [Function],
     defer: [Function],
     throttle: [Function],
     debounce: [Function],
     once: [Function],
     wrap: [Function],
     compose: [Function],
     after: [Function],
     keys: [Function: keys],
     values: [Function],
     pairs: [Function],
     invert: [Function],
     methods: [Function],
     functions: [Function],
     extend: [Function],
     pick: [Function],
     omit: [Function],
     defaults: [Function],
     clone: [Function],
     tap: [Function],
     isEqual: [Function],
     isEmpty: [Function],
     isElement: [Function],
     isArray: [Function: isArray],
     isObject: [Function],
     isArguments: [Function],
     isFunction: [Function],
     isString: [Function],
     isNumber: [Function],
     isDate: [Function],
     isRegExp: [Function],
     isFinite: [Function],
     isNaN: [Function],
     isBoolean: [Function],
     isNull: [Function],
     isUndefined: [Function],
     has: [Function],
     noConflict: [Function],
     identity: [Function],
     times: [Function],
     random: [Function],
     escape: [Function],
     unescape: [Function],
     result: [Function],
     mixin: [Function],
     uniqueId: [Function],
     templateSettings:
      { evaluate: /<%([\s\S]+?)%>/g,
        interpolate: /<%=([\s\S]+?)%>/g,
        escape: /<%-([\s\S]+?)%>/g },
     template: [Function],
     chain: [Function] },
  typogr:
   { [Function]
     version: '0.5.2',
     amp: [Function],
     ord: [Function],
     initQuotes: [Function],
     widont: [Function],
     caps: [Function],
     typogrify: [Function],
     smartypants: [Function],
     tokenize: [Function],
     smartEscapes: [Function],
     smartDashes: [Function],
     smartEllipses: [Function],
     smartBackticks: [Function],
     smartQuotes: [Function] } }