Sample locals variables

Tri Nguyen edited this page Jun 14, 2013 · 2 revisions
Clone this wiki locally
{ contents:
   { pages: { '': [Object] },
      { pageNum: 1,
        articles: [Object],
        prevPage: undefined,
        nextPage: undefined,
        parent: [Object],
        __env: [Object],
        __filename: 'generator',
        __plugin: [Object] },
      { 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\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]:\n[2]:\n',
        __env: [Object],
        __plugin: [Object],
        __filename: '/path/to/wintersmith/contents/',
        parent: [Object] },
      { filepath: [Object],
        metadata: [Object],
        markdown: '',
        __env: [Object],
        __plugin: [Object],
        __filename: '/path/to/wintersmith/contents/archive.json',
        parent: [Object] },
      { filepath: [Object],
        metadata: [Object],
        markdown: '',
        __env: [Object],
        __plugin: [Object],
        __filename: '/path/to/wintersmith/contents/feed.json',
        parent: [Object] },
     css: { 'main.css': [Object] },
      { 'baker.json': [Object],
        'the-wintersmith.json': [Object],
        'tri-nguyen.json': [Object] },
     articles: { 'hello-world': [Object] },
      { 'another-test': [Object],
        'bamboo-cutter': [Object],
        'markdown-syntax': [Object],
        'red-herring': [Object],
        'hello-world': [Object] } },
   [ { 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│   ├──\n│   ├── archive.json\n│   ├── articles              <– each article has its own directory\n│   │   ├── another-test\n│   │   │   └──\n│   │   ├── bamboo-cutter\n│   │   │   ├──\n│   │   │   └── taketori_monogatari.jpg\n│   │   ├── hello-world\n│   │   │   └──\n│   │   ├── markdown-syntax\n│   │   │   └──\n│   │   └── red-herring\n│   │       ├── banana.png\n│   │       └──\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 plugin\n├── templates\n│   ├── archive.jade\n│   ├── article.jade\n│   ├── author.jade\n│   ├── feed.jade\n│   ├── index.jade\n│   └── layout.jade\n└── views\n    └──       <- 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 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/',
       parent: [Object] } ],
  prevPage: undefined,
  nextPage: undefined,
  url: 'http://localhost:4000',
  name: 'Tri Nguyen',
  owner: 'Tri Nguyen',
  description: 'Web Developer',
   { [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],
      { 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],
      { evaluate: /<%([\s\S]+?)%>/g,
        interpolate: /<%=([\s\S]+?)%>/g,
        escape: /<%-([\s\S]+?)%>/g },
     template: [Function],
     chain: [Function] },
   { [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] } }