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

Multiple layouts #106

Closed
shirk3y opened this issue Jan 6, 2015 · 9 comments
Closed

Multiple layouts #106

shirk3y opened this issue Jan 6, 2015 · 9 comments

Comments

@shirk3y
Copy link

shirk3y commented Jan 6, 2015

Hi,
Is there any way to implement mutliple layouts that use distinct set of base DOM elements and stylesheets? I've found solution to do it in Iron Router, but I don't want to mix ui-router with it.
And wider question: Are there plans to totally separate from Blaze in the future?

@Urigo
Copy link
Owner

Urigo commented Jan 7, 2015

Hi @shirk3y , I'm sorry but I wasn't able to understand your question fully.

can you provide an example (in iron:router if that working for you)?

About separating from Blaze, the new version let's you use the .tpl file extension to make a file compile only with AngularJS and without Blaze.
You can have a look in the new tutorial:
http://angularjs.meteor.com/tutorial/step_00

@shirk3y
Copy link
Author

shirk3y commented Jan 7, 2015

@Urigo I mean something like http://www.manuel-schoebel.com/blog/iron-router-tutorial (See section "Specify a layout")

About new .tpl extension: Does it support alternative languages like jade?

@Urigo
Copy link
Owner

Urigo commented Jan 7, 2015

@shirk3y yes of course you can do few different layouts, this is a basic feature and the our tutorial is also specifying how to do that.

For more information, the best source will be ui-router

About .jade, Meteor gives each file extension only one build process so right now no jade in .tpl
You can watch and help in the discussion here:
MeteorCommunity/discussions#51

@Urigo Urigo closed this as completed Jan 7, 2015
@pbastowski
Copy link
Contributor

Jade templates are now available through this angular-meteor package: https://github.com/civilframe/meteor-angular-jade/

@shirk3y
Copy link
Author

shirk3y commented Mar 11, 2015

@pbastowski Thanks a lot!

@Urigo
Copy link
Owner

Urigo commented Mar 11, 2015

@pbastowski nice job!
If you want, you can pull request the readme file and add your package to the bottom

@pbastowski
Copy link
Contributor

Guys
This is not my package. I just found it myself yesterday and thought I'd share :)
Paul

@Urigo
Copy link
Owner

Urigo commented Mar 12, 2015

@pbastowski it doesn't mean you can't add it to the readme... :)

@pbastowski
Copy link
Contributor

Good point, Uri :)

Done!

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

No branches or pull requests

3 participants