-
Notifications
You must be signed in to change notification settings - Fork 453
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
Add support for Underscore templating #94
Comments
Could you please elaborate. |
@ericrange please explain in enough detail for someone to actually be able to help you. |
dont you know underscore templating? http://underscorejs.org/ when i beautify it, it throws an error "mustache not supported" |
I know of Underscore templating, I believe Grunt uses it. I also know that Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects and so much more than templating, which is where my confusion came from your lack of information provided. Please provide an example file including
We can look into adding support for Underscore templating. |
@ericrange, could you provide an example file and what you would expect it to look after beautified? |
That syntax looks similar to HTML with Embedded Ruby. We have recently added support for ERB: #80 |
yeah but if i do ctrl + alt + b... the error "Unsupported language for grammar 'HTML (Mustache)'." appears |
Try Edit: As previously asked, what is the file extension? |
extension is .hbs because its a nodejs template for handlebars BUT contains underscore templates for the frontend. i choose grammar to HTML EBR but this throws following error: Command failed: cmd.exe /s /c "htmlbeautifier < "c:\Users\Eric\AppData\Local\Temp\input114818-6432-mfhwyp" > "c:\Users\Eric\AppData\Local\Temp\114818-6432-lhds3r"" Der Befehl "htmlbeautifier" ist entweder falsch geschrieben oder i updated the package and restart atom... if you cant understand german, it means "command htmlbea... not found or spelled incoretly" |
For ERB support it required installation of htmlbeautifer. See https://rubygems.org/gems/htmlbeautifier From your description is sounds like you may be using multiple syntax es, Handlebars templating and Underscores (similar to ERB) is this accurate? I won't have time until Sunday at the earliest to look into this but hopefully we can figure something out that works for you. |
yes i use multiple sytaxes... handlebars(server), underscore(client), html and some inline javascript ❗ :D take as much time as you need :D i dont even expect that you will deal with it :D |
I think #27 will resolve this :). Allow you to select code and run certain beautifiers on your selection. |
Just added Hope this helps. Thanks for using atom Beautify! |
Also see prettydiff/prettydiff#35 |
i need underscore support :(
The text was updated successfully, but these errors were encountered: