Skip to content
Permalink
Browse files

Merge branch 'master' of https://github.com/YPLiang19/Mango

  • Loading branch information...
yongpengliang
yongpengliang committed Mar 14, 2019
2 parents 765fef5 + 888a2b0 commit c22b335f5d9bb1880f72b629b32456e91260085c
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
@@ -4,14 +4,14 @@ Mango is a DSL which syntax is very similar to Objective-C,Mango is also an iO

## Example
```objc
import "AppDelegate.h"
#import "mango.h"
#import "AppDelegate.h"
#import <MangoFix/mango.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSString *path = [[NSBundle mainBundle] pathForResource:@"demo" ofType:@"mg"];
NSURL *scriptUrl = [NSURL URLWithString:[NSString stringWithFormat:@"file://%@",path]];
NSURL *scriptUrl = [NSURL fileURLWithPath:path];
MMANontext *context = [[MMANontext alloc] init];
   [context evalMangoScriptWithURL:scriptUrl];
return YES;

0 comments on commit c22b335

Please sign in to comment.
You can’t perform that action at this time.