Skip to content

Preserve Sub Directory Structure while rendering templates - #4

Merged
jaylach merged 1 commit into
jaylach:1.0.0from
nazarhussain:1.0.0
Jan 19, 2016
Merged

Preserve Sub Directory Structure while rendering templates#4
jaylach merged 1 commit into
jaylach:1.0.0from
nazarhussain:1.0.0

Conversation

@nazarhussain

Copy link
Copy Markdown

This will allow to use render and use templates in subdirectories;

import address from './nested_template/address'

@nazarhussain

Copy link
Copy Markdown
Author

All tests are passing on my side.

  kale tests
    ✓ should have the proper version
    ✓ should have render function
    ✓ should require an output path

  action tests
    ✓ should exist
    ✓ first should exist
    ✓ first() should return expected result
    ✓ sortBy should exist
    ✓ sortBy() should return expected result [numbers ASC]
    ✓ sortBy() should return expected result [numbers DESC]
    ✓ sortBy() should return expected result [objects ASC]
    ✓ sortBy() should return expected result [objects DESC]
    ✓ filter should exist
    ✓ filter() should return expected result
    ✓ reverse should exist
    ✓ reverse() should return expected result [array]
    ✓ reverse() should return expected result [string]
    ✓ pluck should exist
    ✓ pluck() should return expected result
    ✓ toUpper should exist
    ✓ toUpper() should return expected result
    ✓ toLower should exist
    ✓ toLower() should return expected result
    ✓ capitalize should exist
    ✓ capitalize() should return expected result

  template tests
    example template
      ✓ user
    nested template
      ✓ user nested address template
    simple template
      ✓ simple
      ✓ with locals
    with actions
      ✓ standard actions
      ✓ custom actions


  30 passing (38ms)

There is some other issue due to which travis build is failed.

@jaylach

jaylach commented Jan 19, 2016

Copy link
Copy Markdown
Owner

Looks like I gotta fix travis, that shouldn't be trying to run npm run gen-parser on this branch, lol. Otherwise, this looks good! Thanks!! :)

jaylach added a commit that referenced this pull request Jan 19, 2016
Preserve Sub Directory Structure while rendering templates
@jaylach
jaylach merged commit 9ab8871 into jaylach:1.0.0 Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants